@@ -22,7 +22,6 @@ import qualified Streamly.Benchmark.Prelude as P
23#ifdef MEMORY_ARRAY
23#ifdef MEMORY_ARRAY
24import qualified GHC.Exts as GHC
24import qualified GHC.Exts as GHC
25−import Foreign.Storable (Storable(..))
28#if !defined(DATA_ARRAY_PRIM) && !defined(DATA_ARRAY_PRIM_PINNED)
27#if !defined(DATA_ARRAY_PRIM) && !defined(DATA_ARRAY_PRIM_PINNED)
@@ -36,8 +35,7 @@ import Control.DeepSeq (deepseq)
36#ifdef MEMORY_ARRAY
35#ifdef MEMORY_ARRAY
37-- Drain a source that generates a pure array
36-- Drain a source that generates a pure array
38{-# INLINE benchPureSrc #-}
37{-# INLINE benchPureSrc #-}
40− (NFData a, Storable a) => String -> (Int -> Ops.Stream a) -> Benchmark
38+benchPureSrc :: String -> (Int -> Ops.Stream a) -> Benchmark
41benchPureSrc name src = benchPure name src id
39benchPureSrc name src = benchPure name src id
@@ -49,11 +47,10 @@ benchIO name src f = bench name $ nfIO $
49-- Drain a source that generates an array in the IO monad
47-- Drain a source that generates an array in the IO monad
50{-# INLINE benchIOSrc #-}
48{-# INLINE benchIOSrc #-}
51benchIOSrc ::
49benchIOSrc ::
50+#if !defined(DATA_ARRAY_PRIM) \
52−#if !defined(DATA_ARRAY_PRIM) && !defined(DATA_ARRAY_PRIM_PINNED)
51+ && !defined(DATA_ARRAY_PRIM_PINNED) \
52+ && !defined(MEMORY_ARRAY)
53 NFData a =>
53 NFData a =>
58 String -> (Int -> IO (Ops.Stream a)) -> Benchmark
55 String -> (Int -> IO (Ops.Stream a)) -> Benchmark
59benchIOSrc name src = benchIO name src id
56benchIOSrc name src = benchIO name src id