Commits

Bryan O'Sullivan committed 0f4acde

Fix build of tests under GHC 6.12.3

  • Participants
  • Parent commits 53adac4

Comments (0)

Files changed (1)

tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs

 
 -- Newline and NewlineMode have standard Show instance from GHC 7 onwards
 #if __GLASGOW_HASKELL__ < 700
-instance Show Newline where
-    show CRLF = "CRLF"
-    show LF   = "LF"
+instance Show IO.Newline where
+    show IO.CRLF = "CRLF"
+    show IO.LF   = "LF"
 
-instance Show NewlineMode where
-    show (NewlineMode i o) = "NewlineMode { inputNL = " ++ show i ++
-                             ", outputNL = " ++ show o ++ " }"
+instance Show IO.NewlineMode where
+    show (IO.NewlineMode i o) = "NewlineMode { inputNL = " ++ show i ++
+                                ", outputNL = " ++ show o ++ " }"
 # endif
 
 instance Arbitrary IO.NewlineMode where