@@ -19,7 +19,7 @@
1919#include "inline.hs"
2020
2121-- |
22−-- Module : Streamly.Streams.StreamD
22+-- Module : Streamly.Internal.Data.Stream.StreamD
2323-- Copyright : (c) 2018 Harendra Kumar
2424-- Copyright : (c) Roman Leshchinskiy 2008-2010
2525-- Copyright : (c) The University of Glasgow, 2009
@@ -36,13 +36,13 @@
3636-- CPS implementation.
3737--
3838-- @
39−-- import qualified Streamly.Streams.StreamD as D
39+-- import qualified Streamly.Internal.Data.Stream.StreamD as D
4040-- @
4141
4242-- Some of the functions in this file have been adapted from the vector
4343-- library, https://hackage.haskell.org/package/vector.
4444
45−module Streamly.Streams.StreamD
45+module Streamly.Internal.Data.Stream.StreamD
4646 (
4747 -- * The stream type
4848 Step (..)
@@ -3826,7 +3826,7 @@ decodeUtf8With cfm (Stream step state) =
38263826 inputUnderflow =
38273827 case cfm of
38283828 ErrorOnCodingFailure ->
3829− error "Streamly.Streams.StreamD.decodeUtf8With: Input Underflow"
3829+ error "Streamly.Internal.Data.Stream.StreamD.decodeUtf8With: Input Underflow"
38303830 TransliterateCodingFailure -> YieldAndContinue replacementChar Done
38313831 {-# INLINE_LATE step' #-}
38323832 step' _ gst (FreshPointDecodeInit st) = do
@@ -3860,7 +3860,7 @@ decodeUtf8With cfm (Stream step state) =
38603860 12 ->
38613861 Skip $
38623862 transliterateOrError
3863− "Streamly.Streams.StreamD.decodeUtf8With: Invalid UTF8 codepoint encountered"
3863+ "Streamly.Internal.Data.Stream.StreamD.decodeUtf8With: Invalid UTF8 codepoint encountered"
38643864 (FreshPointDecodeInit st)
38653865 0 -> error "unreachable state"
38663866 _ -> Skip (FreshPointDecoding st sv cp)
@@ -3879,7 +3879,7 @@ decodeUtf8With cfm (Stream step state) =
38793879 12 ->
38803880 Skip $
38813881 transliterateOrError
3882− "Streamly.Streams.StreamD.decodeUtf8With: Invalid UTF8 codepoint encountered"
3882+ "Streamly.Internal.Data.Stream.StreamD.decodeUtf8With: Invalid UTF8 codepoint encountered"
38833883 (FreshPointDecodeInit1 s x)
38843884 _ -> Skip (FreshPointDecoding s sv cp)
38853885 Skip s -> return $ Skip (FreshPointDecoding s statePtr codepointPtr)
@@ -4012,7 +4012,7 @@ decodeUtf8ArraysWith cfm (Stream step state) =
40124012 case cfm of
40134013 ErrorOnCodingFailure ->
40144014 error
4015− "Streamly.Streams.StreamD.decodeUtf8ArraysWith: Input Underflow"
4015+ "Streamly.Internal.Data.Stream.StreamD.decodeUtf8ArraysWith: Input Underflow"
40164016 TransliterateCodingFailure -> YAndC replacementChar D
40174017 {-# INLINE_LATE step' #-}
40184018 step' _ gst (OuterLoop st Nothing) = do
@@ -4061,7 +4061,7 @@ decodeUtf8ArraysWith cfm (Stream step state) =
40614061 12 ->
40624062 Skip $
40634063 transliterateOrError
4064− "Streamly.Streams.StreamD.decodeUtf8ArraysWith: Invalid UTF8 codepoint encountered"
4064+ "Streamly.Internal.Data.Stream.StreamD.decodeUtf8ArraysWith: Invalid UTF8 codepoint encountered"
40654065 (InnerLoopDecodeInit st startf (p `plusPtr` 1) end)
40664066 0 -> error "unreachable state"
40674067 _ -> Skip (InnerLoopDecoding st startf (p `plusPtr` 1) end sv cp)
@@ -4082,7 +4082,7 @@ decodeUtf8ArraysWith cfm (Stream step state) =
40824082 12 ->
40834083 Skip $
40844084 transliterateOrError
4085− "Streamly.Streams.StreamD.decodeUtf8ArraysWith: Invalid UTF8 codepoint encountered"
4085+ "Streamly.Internal.Data.Stream.StreamD.decodeUtf8ArraysWith: Invalid UTF8 codepoint encountered"
40864086 (InnerLoopDecodeInit st startf (p `plusPtr` 1) end)
40874087 _ -> Skip (InnerLoopDecoding st startf (p `plusPtr` 1) end sv cp)
40884088 step' _ _ (YAndC c s) = return $ Yield c s
@@ -4128,7 +4128,7 @@ encodeUtf8 (Stream step state) = Stream step' (EncodeState state WNil)
41284128 | x <= 0xFFFF ->
41294129 if isSurrogate c
41304130 then error
4131− "Streamly.Streams.StreamD.encodeUtf8: Encountered a surrogate"
4131+ "Streamly.Internal.Data.Stream.StreamD.encodeUtf8: Encountered a surrogate"
41324132 else Skip (EncodeState s (ord3 c))
41334133 | otherwise -> Skip (EncodeState s (ord4 c))
41344134 Skip s -> Skip (EncodeState s WNil)