diff --git a/core/docs/Changelog.md b/core/docs/Changelog.md index af2cbaffa..b27cb5e8f 100644 --- a/core/docs/Changelog.md +++ b/core/docs/Changelog.md @@ -25,8 +25,8 @@ exported from higher level internal modules. If you were importing any of the missing modules then import the higher level modules now. * Internal module changes: - * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Serialize.Parser - * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Serialize.Stream + * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Binary.Parser + * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Binary.Stream * Streamly.Internal.Data.Unbox is now exported via Streamly.Internal.Data.Serialize * Streamly.Internal.Data.IORef.Unboxed is now exported via Streamly.Internal.Data.Serialize diff --git a/core/src/Streamly/Internal/Data/Serialize/Parser.hs b/core/src/Streamly/Internal/Data/Binary/Parser.hs similarity index 99% rename from core/src/Streamly/Internal/Data/Serialize/Parser.hs rename to core/src/Streamly/Internal/Data/Binary/Parser.hs index 8fe32497f..1690ef87f 100644 --- a/core/src/Streamly/Internal/Data/Serialize/Parser.hs +++ b/core/src/Streamly/Internal/Data/Binary/Parser.hs @@ -1,5 +1,5 @@ -- | --- Module : Streamly.Internal.Data.Serialize.Parser +-- Module : Streamly.Internal.Data.Binary.Parser -- Copyright : (c) 2020 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : streamly@composewell.com @@ -13,7 +13,7 @@ -- representing Haskell data types is to write them to arrays and deserialize -- the array using the Serialize type class. -module Streamly.Internal.Data.Serialize.Parser +module Streamly.Internal.Data.Binary.Parser ( -- * Type class FromBytes (..) diff --git a/core/src/Streamly/Internal/Data/Serialize/Stream.hs b/core/src/Streamly/Internal/Data/Binary/Stream.hs similarity index 99% rename from core/src/Streamly/Internal/Data/Serialize/Stream.hs rename to core/src/Streamly/Internal/Data/Binary/Stream.hs index 1d65877e6..3166408fd 100644 --- a/core/src/Streamly/Internal/Data/Serialize/Stream.hs +++ b/core/src/Streamly/Internal/Data/Binary/Stream.hs @@ -1,5 +1,5 @@ -- | --- Module : Streamly.Internal.Data.Serialize.Stream +-- Module : Streamly.Internal.Data.Binary.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.Data.Serialize.Stream +module Streamly.Internal.Data.Binary.Stream ( -- * Type class ToBytes (..) diff --git a/core/streamly-core.cabal b/core/streamly-core.cabal index 499fbc015..d848678b5 100644 --- a/core/streamly-core.cabal +++ b/core/streamly-core.cabal @@ -293,8 +293,10 @@ library -- streamly-core-array-types , Streamly.Internal.Data.MutByteArray - , Streamly.Internal.Data.Serialize.Parser - , Streamly.Internal.Data.Serialize.Stream + + -- streaming and parsing Haskell types to/from bytes + , Streamly.Internal.Data.Binary.Parser + , Streamly.Internal.Data.Binary.Stream -- May depend on streamly-core-stream , Streamly.Internal.Data.MutArray diff --git a/test/Streamly/Test/Serialize/Serializable.hs b/test/Streamly/Test/Serialize/Serializable.hs index 2eb7aa710..0e8bb51a4 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.Data.Serialize.Parser as Decoder -import qualified Streamly.Internal.Data.Serialize.Stream as Encoder +import qualified Streamly.Internal.Data.Binary.Parser as Decoder +import qualified Streamly.Internal.Data.Binary.Stream as Encoder import qualified Streamly.Data.Stream as Stream import Streamly.Internal.Data.Parser (Parser)