@@ -63,6 +63,7 @@ import qualified Streamly.Prelude as S
6363import qualified Streamly.Data.Fold as FL
6464import qualified Streamly.Data.String as SS
6565import qualified Streamly.Internal as Internal
66+import qualified Streamly.Internal.Data.Unfold as IUF
6667import qualified Streamly.Internal.Prelude as IP
6768import qualified Streamly.Streams.StreamD as D
6869
@@ -344,7 +345,7 @@ isSp = isSpace . chr . fromIntegral
344345wordsUnwordsCopyWord8 :: Handle -> Handle -> IO ()
345346wordsUnwordsCopyWord8 inh outh =
346347 S.runFold (FH.write outh)
347− $ IP.concatMapU Internal.fromList
348+ $ IP.concatMapU IUF.fromList
348349 $ S.intersperse [32]
349350 $ S.wordsBy isSp FL.toList
350351 $ FH.read inh
@@ -361,7 +362,7 @@ wordsUnwordsCopy :: Handle -> Handle -> IO ()
361362wordsUnwordsCopy inh outh =
362363 S.runFold (FH.write outh)
363364 $ SS.encodeChar8
364− $ IP.concatMapU Internal.fromList
365+ $ IP.concatMapU IUF.fromList
365366 $ S.intersperse " "
366367 -- Array allocation is too expensive for such small strings. So just use
367368 -- lists instead.