Fix build for GHC 8.0 and 7.10

This commit is contained in:
Harendra Kumar 2020-02-15 16:13:43 +05:30
parent a2e0283313
commit 61eb4ebb8f
2 changed files with 8 additions and 1 deletions

View File

@ -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 #-}

View File

@ -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