@@ -44,6 +44,7 @@ import qualified Streamly.Memory.Array as A
4444import qualified Streamly.Prelude as S
4545import qualified Streamly.Data.String as SS
4646import qualified Streamly.Internal.Prelude as Internal
47+import qualified Streamly.Internal.Memory.ArrayStream as AS
4748
4849#ifdef INSPECTION
4950import Foreign.Storable (Storable)
@@ -81,7 +82,7 @@ inspect $ 'countBytes `hasNoType` ''Step
8182-- | Count the number of lines in a file.
8283{-# INLINE countLines #-}
8384countLines :: Handle -> IO Int
84−countLines = S.length . A.splitOnSuffix 10 . FH.readArrays
85+countLines = S.length . AS.splitOnSuffix 10 . FH.readArrays
8586
8687#ifdef INSPECTION
8788inspect $ hasNoTypeClasses 'countLines
@@ -92,7 +93,7 @@ inspect $ 'countLines `hasNoType` ''Step
9293-- | Count the number of lines in a file.
9394{-# INLINE countWords #-}
9495countWords :: Handle -> IO Int
95−countWords = S.length . A.splitOn 32 . FH.readArrays
96+countWords = S.length . AS.splitOn 32 . FH.readArrays
9697
9798#ifdef INSPECTION
9899inspect $ hasNoTypeClasses 'countWords
@@ -141,7 +142,7 @@ linesUnlinesCopy :: Handle -> Handle -> IO ()
141142linesUnlinesCopy inh outh =
142143 S.runFold (FH.writeArraysInChunksOf (1024*1024) outh)
143144 $ Internal.insertAfterEach (return $ A.fromList [10])
144− $ A.splitOnSuffix 10
145+ $ AS.splitOnSuffix 10
145146 $ FH.readArraysOf (1024*1024) inh
146147
147148#ifdef INSPECTION
@@ -156,7 +157,7 @@ wordsUnwordsCopy inh outh =
156157 S.runFold (FH.writeArraysInChunksOf (1024*1024) outh)
157158 $ S.intersperse (A.fromList [32])
158159 -- XXX use a word splitting combinator
159− $ A.splitOn 32
160+ $ AS.splitOn 32
160161 $ FH.readArraysOf (1024*1024) inh
161162
162163#ifdef INSPECTION