Commits

Bryan O'Sullivan committed f4e7f16

QuickCheckUtils: drop support for GHC < 7

  • Participants
  • Parent commits c903614

Comments (0)

Files changed (1)

tests/Tests/QuickCheckUtils.hs

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