@@ -63,6 +63,7 @@ import qualified Streamly.Internal.Prelude as S
6363import qualified Streamly.Fold as FL
6464import qualified Streamly.Data.String as SS
6565import qualified Streamly.Internal as Internal
66+import qualified Streamly.Internal.Prelude as IP
6667import qualified Streamly.Streams.StreamD as D
6768
6869#ifdef INSPECTION
@@ -134,7 +135,7 @@ countLinesU inh =
134135 S.length
135136 $ SS.foldLines FL.drain
136137 $ SS.decodeChar8
137− $ Internal.concatMapU Internal.readU (FH.readArrays inh)
138+ $ IP.concatMapU Internal.readU (FH.readArrays inh)
138139
139140#ifdef INSPECTION
140141inspect $ hasNoTypeClasses 'countLinesU
@@ -343,7 +344,7 @@ isSp = isSpace . chr . fromIntegral
343344wordsUnwordsCopyWord8 :: Handle -> Handle -> IO ()
344345wordsUnwordsCopyWord8 inh outh =
345346 S.runFold (FH.write outh)
346− $ Internal.concatMapU Internal.fromList
347+ $ IP.concatMapU Internal.fromList
347348 $ S.intersperse [32]
348349 $ S.wordsBy isSp FL.toList
349350 $ FH.read inh
@@ -360,7 +361,7 @@ wordsUnwordsCopy :: Handle -> Handle -> IO ()
360361wordsUnwordsCopy inh outh =
361362 S.runFold (FH.write outh)
362363 $ SS.encodeChar8
363− $ Internal.concatMapU Internal.fromList
364+ $ IP.concatMapU Internal.fromList
364365 $ S.intersperse " "
365366 -- Array allocation is too expensive for such small strings. So just use
366367 -- lists instead.
@@ -439,7 +440,7 @@ inspect $ 'wordsBy `hasNoType` ''D.ConcatMapUState
439440{-# INLINE splitOnSeq #-}
440441splitOnSeq :: String -> Handle -> IO Int
441442splitOnSeq str inh =
442− (S.length $ Internal.splitOnSeq (toarr str) FL.drain
443+ (S.length $ IP.splitOnSeq (toarr str) FL.drain
443444 $ FH.read inh) -- >>= print
444445
445446#ifdef INSPECTION
@@ -453,7 +454,7 @@ inspect $ hasNoTypeClasses 'splitOnSeq
453454{-# INLINE splitOnSeqUtf8 #-}
454455splitOnSeqUtf8 :: String -> Handle -> IO Int
455456splitOnSeqUtf8 str inh =
456− (S.length $ Internal.splitOnSeq (A.fromList str) FL.drain
457+ (S.length $ IP.splitOnSeq (A.fromList str) FL.drain
457458 $ SS.decodeUtf8ArraysLenient
458459 $ FH.readArrays inh) -- >>= print
459460
@@ -461,7 +462,7 @@ splitOnSeqUtf8 str inh =
461462{-# INLINE splitOnSuffixSeq #-}
462463splitOnSuffixSeq :: String -> Handle -> IO Int
463464splitOnSuffixSeq str inh =
464− (S.length $ Internal.splitOnSuffixSeq (toarr str) FL.drain
465+ (S.length $ IP.splitOnSuffixSeq (toarr str) FL.drain
465466 $ FH.read inh) -- >>= print
466467
467468#ifdef INSPECTION