[commit: packages/binary] master: Conditionally include <$> for older GHC versions. (5a91e0d)

git at git.haskell.org git at git.haskell.org
Wed Dec 16 09:43:03 UTC 2015


Repository : ssh://git@git.haskell.org/binary

On branch  : master
Link       : http://git.haskell.org/packages/binary.git/commitdiff/5a91e0d8b7ef5150b268b52536751f44c4a9a052

>---------------------------------------------------------------

commit 5a91e0d8b7ef5150b268b52536751f44c4a9a052
Author: Lennart Kolmodin <kolmodin at google.com>
Date:   Fri Aug 14 12:56:59 2015 +0200

    Conditionally include <$> for older GHC versions.


>---------------------------------------------------------------

5a91e0d8b7ef5150b268b52536751f44c4a9a052
 benchmarks/GenericsBenchCache.hs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/benchmarks/GenericsBenchCache.hs b/benchmarks/GenericsBenchCache.hs
index 1b6f041..d65e731 100644
--- a/benchmarks/GenericsBenchCache.hs
+++ b/benchmarks/GenericsBenchCache.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveGeneric, StandaloneDeriving, BangPatterns #-}
+{-# LANGUAGE DeriveGeneric, StandaloneDeriving, BangPatterns, CPP #-}
 module GenericsBenchCache (readPackageDescriptionCache) where
 
 import qualified Text.ParserCombinators.ReadP                  as Read
@@ -20,6 +20,9 @@ import           System.Exit
 
 import           GenericsBenchTypes                            ()
 
+#if ! MIN_VERSION_base(4,8,0)
+import           Control.Applicative                           ((<$>))
+#endif
 
 readTar :: String -> Int -> IO [PackageDescription]
 readTar tarPath limit = do



More information about the ghc-commits mailing list