Skip to content

Commit ffc1268

Browse files
committed
Fixed warnings in Data/Vector/Fusion/Bundle.hs
- Removed unused imports - Data.Vector.Fusion.Stream.Monadic (SPEC(..)) - Data.Vector.Internal.Check - Renamed a variable to avoid shadowing
1 parent 494dd4b commit ffc1268

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Data/Vector/Fusion/Bundle.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module Data.Vector.Fusion.Bundle (
7979
import Data.Vector.Generic.Base ( Vector )
8080
import Data.Vector.Fusion.Bundle.Size
8181
import Data.Vector.Fusion.Util
82-
import Data.Vector.Fusion.Stream.Monadic ( Stream(..), Step(..), SPEC(..) )
82+
import Data.Vector.Fusion.Stream.Monadic ( Stream(..), Step(..) )
8383
import Data.Vector.Fusion.Bundle.Monadic ( Chunk(..) )
8484
import qualified Data.Vector.Fusion.Bundle.Monadic as M
8585
import qualified Data.Vector.Fusion.Stream.Monadic as S
@@ -100,6 +100,8 @@ import Prelude hiding ( length, null,
100100

101101
import 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
586588
toListFB :: (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

Comments
 (0)