@@ -19,7 +19,7 @@ import Control.Monad.IO.Class (MonadIO)
1919import Prelude (Int, Bool, (+), ($), (==), (>), (.), Maybe(..), undefined)
2020import qualified Prelude as P
2121#ifdef DEVBUILD
22−import qualified Data.Foldable as F
22+-- import qualified Data.Foldable as F
2323#endif
2424
2525import qualified Streamly as S hiding (foldMapWith, runStream)
@@ -139,7 +139,10 @@ readInstance str =
139139pureFoldl' :: MonadIO m => Stream Int -> m Int
140140pureFoldl' = S.foldl' (+) 0 . S.unfold A.read
141141
142−#ifdef DEVBUILD
142+#if 0
143+-- PrimArray does not have a Foldable instance because it reuqires a Prim
144+-- constraint. Though it should be possible to make an instance in the same way
145+-- as we do in Memory.Array.
143146{-# INLINE foldableFoldl' #-}
144147foldableFoldl' :: Stream Int -> Int
145148foldableFoldl' = F.foldl' (+) 0