on master help sign in
Fix build for GHC 8.0 and 7.10
commit61eb4ebb8f785f4593244d22329846b519cee81d authorHarendra Kumar <harendra.kumar@gmail.com> dateSat 15 Feb 2020, 16:13 (7 years ago) parenta2e0283
2 files changed+8−1
benchmark/BaseStreams.hs+5−1 streamly.cabal+3
benchmark/BaseStreams.hs+5−1
@@ -7,7 +7,7 @@
77
88{-# LANGUAGE CPP #-}
99
10−import Control.DeepSeq (NFData)
10+import Control.DeepSeq (NFData(..))
1111-- import Data.Functor.Identity (Identity, runIdentity)
1212import System.Random (randomRIO)
1313
@@ -17,6 +17,10 @@ import qualified StreamKOps as K
1717import qualified StreamDKOps as DK
1818import qualified Data.List as List
1919
20+#if !MIN_VERSION_deepseq(1,4,3)
21+instance NFData Ordering where rnf = (`seq` ())
22+#endif
23+
2024-- We need a monadic bind here to make sure that the function f does not get
2125-- completely optimized out by the compiler in some cases.
2226{-# INLINE benchIO #-}
streamly.cabal+3
@@ -952,6 +952,9 @@ benchmark adaptive
952952 , base >= 4.8 && < 5
953953 , gauge >= 0.2.4 && < 0.3
954954 , random >= 1.0 && < 2.0
955+ if impl(ghc < 8.0)
956+ build-depends:
957+ transformers >= 0.4 && < 0.6
955958
956959executable chart
957960 default-language: Haskell2010