mirror of
https://github.com/composewell/streamly.git
synced 2024-11-10 12:47:22 +03:00
Fix build for GHC 8.0 and 7.10
This commit is contained in:
parent
a2e0283313
commit
61eb4ebb8f
@ -7,7 +7,7 @@
|
||||
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
import Control.DeepSeq (NFData)
|
||||
import Control.DeepSeq (NFData(..))
|
||||
-- import Data.Functor.Identity (Identity, runIdentity)
|
||||
import System.Random (randomRIO)
|
||||
|
||||
@ -17,6 +17,10 @@ import qualified StreamKOps as K
|
||||
import qualified StreamDKOps as DK
|
||||
import qualified Data.List as List
|
||||
|
||||
#if !MIN_VERSION_deepseq(1,4,3)
|
||||
instance NFData Ordering where rnf = (`seq` ())
|
||||
#endif
|
||||
|
||||
-- We need a monadic bind here to make sure that the function f does not get
|
||||
-- completely optimized out by the compiler in some cases.
|
||||
{-# INLINE benchIO #-}
|
||||
|
@ -952,6 +952,9 @@ benchmark adaptive
|
||||
, base >= 4.8 && < 5
|
||||
, gauge >= 0.2.4 && < 0.3
|
||||
, random >= 1.0 && < 2.0
|
||||
if impl(ghc < 8.0)
|
||||
build-depends:
|
||||
transformers >= 0.4 && < 0.6
|
||||
|
||||
executable chart
|
||||
default-language: Haskell2010
|
||||
|
Loading…
Reference in New Issue
Block a user