@@ -22,7 +22,6 @@ import qualified Streamly.Benchmark.Prelude as P
2222
2323#ifdef MEMORY_ARRAY
2424import qualified GHC.Exts as GHC
25−import Foreign.Storable (Storable(..))
2625#endif
2726
2827#if !defined(DATA_ARRAY_PRIM) && !defined(DATA_ARRAY_PRIM_PINNED)
@@ -36,8 +35,7 @@ import Control.DeepSeq (deepseq)
3635#ifdef MEMORY_ARRAY
3736-- Drain a source that generates a pure array
3837{-# INLINE benchPureSrc #-}
39−benchPureSrc ::
40− (NFData a, Storable a) => String -> (Int -> Ops.Stream a) -> Benchmark
38+benchPureSrc :: String -> (Int -> Ops.Stream a) -> Benchmark
4139benchPureSrc name src = benchPure name src id
4240#endif
4341
@@ -49,11 +47,10 @@ benchIO name src f = bench name $ nfIO $
4947-- Drain a source that generates an array in the IO monad
5048{-# INLINE benchIOSrc #-}
5149benchIOSrc ::
52−#if !defined(DATA_ARRAY_PRIM) && !defined(DATA_ARRAY_PRIM_PINNED)
50+#if !defined(DATA_ARRAY_PRIM) \
51+ && !defined(DATA_ARRAY_PRIM_PINNED) \
52+ && !defined(MEMORY_ARRAY)
5353 NFData a =>
54−#endif
55−#ifdef MEMORY_ARRAY
56− Storable a =>
5754#endif
5855 String -> (Int -> IO (Ops.Stream a)) -> Benchmark
5956benchIOSrc name src = benchIO name src id