[commit: packages/binary] master: Fix generic-bench build error on GHC 8.0.1. (bbe7789)
git at git.haskell.org
git at git.haskell.org
Sat Feb 4 21:17:42 UTC 2017
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/bbe7789b7bf8657b9e9740351bed6252352e98fb
>---------------------------------------------------------------
commit bbe7789b7bf8657b9e9740351bed6252352e98fb
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date: Sat May 28 11:59:26 2016 +0200
Fix generic-bench build error on GHC 8.0.1.
>---------------------------------------------------------------
bbe7789b7bf8657b9e9740351bed6252352e98fb
benchmarks/GenericsBenchTypes.hs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/benchmarks/GenericsBenchTypes.hs b/benchmarks/GenericsBenchTypes.hs
index cbedf1e..4ffc248 100644
--- a/benchmarks/GenericsBenchTypes.hs
+++ b/benchmarks/GenericsBenchTypes.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE DeriveGeneric, StandaloneDeriving #-}
+{-# LANGUAGE CPP, DeriveGeneric, StandaloneDeriving #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module GenericsBenchTypes where
@@ -14,8 +14,9 @@ import GHC.Generics (Generic)
import Data.Binary
-
+#if ! MIN_VERSION_base(4,9,0)
deriving instance Generic Version
+#endif
instance Binary Benchmark
instance Binary BenchmarkInterface
More information about the ghc-commits
mailing list