@@ -79,7 +79,7 @@ module Data.Vector.Fusion.Bundle (
7979import Data.Vector.Generic.Base ( Vector )
8080import Data.Vector.Fusion.Bundle.Size
8181import Data.Vector.Fusion.Util
82- import Data.Vector.Fusion.Stream.Monadic ( Stream (.. ), Step (.. ), SPEC ( .. ) )
82+ import Data.Vector.Fusion.Stream.Monadic ( Stream (.. ), Step (.. ) )
8383import Data.Vector.Fusion.Bundle.Monadic ( Chunk (.. ) )
8484import qualified Data.Vector.Fusion.Bundle.Monadic as M
8585import qualified Data.Vector.Fusion.Stream.Monadic as S
@@ -100,6 +100,8 @@ import Prelude hiding ( length, null,
100100
101101import GHC.Base ( build )
102102
103+ -- Data.Vector.Internal.Check is unused
104+ #define NOT_VECTOR_MODULE
103105#include "vector.h"
104106
105107-- | The type of pure streams
@@ -585,7 +587,7 @@ toList s = build (\c n -> toListFB c n s)
585587-- This supports foldr/build list fusion that GHC implements
586588toListFB :: (a -> b -> b ) -> b -> Bundle v a -> b
587589{-# INLINE [0] toListFB #-}
588- toListFB c n M. Bundle {M. sElems = Stream step s } = go s
590+ toListFB c n M. Bundle {M. sElems = Stream step t } = go t
589591 where
590592 go s = case unId (step s) of
591593 Yield x s' -> x `c` go s'
0 commit comments