[commit: packages/binary] master: Conditionally include Control.Applicative for older GHC versions. (e07fccb)
git at git.haskell.org
git at git.haskell.org
Wed Dec 16 09:43:05 UTC 2015
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/e07fccbe9935b0e7a0c1487bdae40cb0c1706656
>---------------------------------------------------------------
commit e07fccbe9935b0e7a0c1487bdae40cb0c1706656
Author: Lennart Kolmodin <kolmodin at google.com>
Date: Fri Aug 14 22:22:42 2015 +0200
Conditionally include Control.Applicative for older GHC versions.
>---------------------------------------------------------------
e07fccbe9935b0e7a0c1487bdae40cb0c1706656
tests/File.hs | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/tests/File.hs b/tests/File.hs
index 1998bc6..1ec631b 100644
--- a/tests/File.hs
+++ b/tests/File.hs
@@ -1,14 +1,18 @@
+{-# LANGUAGE CPP #-}
module Main where
-import Control.Applicative
-import Test.HUnit
-import System.Directory ( getTemporaryDirectory )
-import System.FilePath ( (</>) )
+#if ! MIN_VERSION_base(4,8,0)
+import Control.Applicative
+#endif
-import Distribution.Simple.Utils ( withTempDirectory )
-import Distribution.Verbosity ( silent )
+import System.Directory (getTemporaryDirectory)
+import System.FilePath ((</>))
+import Test.HUnit
-import Data.Binary
+import Distribution.Simple.Utils (withTempDirectory)
+import Distribution.Verbosity (silent)
+
+import Data.Binary
data Foo = Bar !Word32 !Word32 !Word32 deriving (Eq, Show)
More information about the ghc-commits
mailing list