on master help sign in
Fix build for GHC 8.0 and 7.10
61eb4ebHarendra Kumar
benchmark/BaseStreams.hs+5−1
@@ -7,7 +7,7 @@
7
7
8{-# LANGUAGE CPP #-}
8{-# LANGUAGE CPP #-}
9
9
10−import Control.DeepSeq (NFData)
10+import Control.DeepSeq (NFData(..))
11-- import Data.Functor.Identity (Identity, runIdentity)
11-- import Data.Functor.Identity (Identity, runIdentity)
12import System.Random (randomRIO)
12import System.Random (randomRIO)
13
13
@@ -17,6 +17,10 @@ import qualified StreamKOps as K
17import qualified StreamDKOps as DK
17import qualified StreamDKOps as DK
18import qualified Data.List as List
18import qualified Data.List as List
19
19
20+#if !MIN_VERSION_deepseq(1,4,3)
21+instance NFData Ordering where rnf = (`seq` ())
22+#endif
23+
20-- We need a monadic bind here to make sure that the function f does not get
24-- We need a monadic bind here to make sure that the function f does not get
21-- completely optimized out by the compiler in some cases.
25-- completely optimized out by the compiler in some cases.
22{-# INLINE benchIO #-}
26{-# INLINE benchIO #-}
streamly.cabal+3
@@ -952,6 +952,9 @@ benchmark adaptive
952 , base >= 4.8 && < 5
952 , base >= 4.8 && < 5
953 , gauge >= 0.2.4 && < 0.3
953 , gauge >= 0.2.4 && < 0.3
954 , random >= 1.0 && < 2.0
954 , random >= 1.0 && < 2.0
955+ if impl(ghc < 8.0)
956+ build-depends:
957+ transformers >= 0.4 && < 0.6
955
958
956executable chart
959executable chart
957 default-language: Haskell2010
960 default-language: Haskell2010