diff --git a/core/docs/Changelog.md b/core/docs/Changelog.md index 04100e539..f9b85aee1 100644 --- a/core/docs/Changelog.md +++ b/core/docs/Changelog.md @@ -17,6 +17,9 @@ * `ParserK` in `Streamly.Data.ParserK` is not specialized to arrays anymore. To adapt to the new code, change `ParserK a m b` to `ParserK (Array a) m b` where `Array` comes from `Streamly.Data.Array`. +* Internal modules renamed: + * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Serialize.Parser + * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Serialize.Stream ### Deprecations diff --git a/core/src/Streamly/Internal/Serialize/FromBytes.hs b/core/src/Streamly/Internal/Data/Serialize/Parser.hs similarity index 99% rename from core/src/Streamly/Internal/Serialize/FromBytes.hs rename to core/src/Streamly/Internal/Data/Serialize/Parser.hs index c37c405e6..4935b0c03 100644 --- a/core/src/Streamly/Internal/Serialize/FromBytes.hs +++ b/core/src/Streamly/Internal/Data/Serialize/Parser.hs @@ -1,5 +1,5 @@ -- | --- Module : Streamly.Internal.Serialize.FromBytes +-- Module : Streamly.Internal.Data.Serialize.Parser -- Copyright : (c) 2020 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : streamly@composewell.com @@ -7,7 +7,7 @@ -- -- Decode Haskell data types from byte streams. -module Streamly.Internal.Serialize.FromBytes +module Streamly.Internal.Data.Serialize.Parser ( -- * Type class FromBytes (..) diff --git a/core/src/Streamly/Internal/Serialize/ToBytes.hs b/core/src/Streamly/Internal/Data/Serialize/Stream.hs similarity index 99% rename from core/src/Streamly/Internal/Serialize/ToBytes.hs rename to core/src/Streamly/Internal/Data/Serialize/Stream.hs index 92593d884..1d65877e6 100644 --- a/core/src/Streamly/Internal/Serialize/ToBytes.hs +++ b/core/src/Streamly/Internal/Data/Serialize/Stream.hs @@ -1,5 +1,5 @@ -- | --- Module : Streamly.Internal.Serialize.ToBytes +-- Module : Streamly.Internal.Data.Serialize.Stream -- Copyright : (c) 2022 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : streamly@composewell.com @@ -17,7 +17,7 @@ -- XXX remove unit, bool, ordering, and the type class as well -module Streamly.Internal.Serialize.ToBytes +module Streamly.Internal.Data.Serialize.Stream ( -- * Type class ToBytes (..) diff --git a/core/streamly-core.cabal b/core/streamly-core.cabal index e4fe63349..6cf6a08f1 100644 --- a/core/streamly-core.cabal +++ b/core/streamly-core.cabal @@ -299,6 +299,8 @@ library , Streamly.Internal.Data.Serialize.TH.RecHeader , Streamly.Internal.Data.Serialize.TH.Common , Streamly.Internal.Data.Serialize.TH.Bottom + , Streamly.Internal.Data.Serialize.Parser + , Streamly.Internal.Data.Serialize.Stream -- Unboxed IORef , Streamly.Internal.Data.IORef.Unboxed @@ -331,10 +333,6 @@ library , Streamly.Internal.Data.Array , Streamly.Internal.Data.Stream.MutChunked - -- streamly-serde - , Streamly.Internal.Serialize.FromBytes - , Streamly.Internal.Serialize.ToBytes - -- streamly-unicode-core , Streamly.Internal.Unicode.Stream , Streamly.Internal.Unicode.String diff --git a/test/Streamly/Test/Serialize/Serializable.hs b/test/Streamly/Test/Serialize/Serializable.hs index 3a494069d..2eb7aa710 100644 --- a/test/Streamly/Test/Serialize/Serializable.hs +++ b/test/Streamly/Test/Serialize/Serializable.hs @@ -10,8 +10,8 @@ import Test.QuickCheck ) import Test.QuickCheck.Monadic (monadicIO) -import qualified Streamly.Internal.Serialize.FromBytes as Decoder -import qualified Streamly.Internal.Serialize.ToBytes as Encoder +import qualified Streamly.Internal.Data.Serialize.Parser as Decoder +import qualified Streamly.Internal.Data.Serialize.Stream as Encoder import qualified Streamly.Data.Stream as Stream import Streamly.Internal.Data.Parser (Parser)