on master help sign in
Move Serialize.Parser/Stream to Binary.Parser/Stream
commitd4db31c512c0b3cfc8359cace34e69bd81ab68b2 authorHarendra Kumar <harendra@composewell.com> dateSun 26 Nov 2023, 02:52 (3 years ago) parent8ff75f2
5 files changed+12−10
core/docs/Changelog.md+2−2 core/src/Streamly/Internal/Data/Serialize/Parser.hs → core/src/Streamly/Internal/Data/Binary/Parser.hs+2−2 core/src/Streamly/Internal/Data/Serialize/Stream.hs → core/src/Streamly/Internal/Data/Binary/Stream.hs+2−2 core/streamly-core.cabal+4−2 test/Streamly/Test/Serialize/Serializable.hs+2−2
core/docs/Changelog.md+2−2
@@ -25,8 +25,8 @@
2525 exported from higher level internal modules. If you were importing any
2626 of the missing modules then import the higher level modules now.
2727* Internal module changes:
28− * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Serialize.Parser
29− * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Serialize.Stream
28+ * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Binary.Parser
29+ * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Binary.Stream
3030 * Streamly.Internal.Data.Unbox is now exported via Streamly.Internal.Data.Serialize
3131 * Streamly.Internal.Data.IORef.Unboxed is now exported via Streamly.Internal.Data.Serialize
3232
core/src/Streamly/Internal/Data/Serialize/Parser.hs → core/src/Streamly/Internal/Data/Binary/Parser.hsrenamed+2−2
@@ -1,5 +1,5 @@
11-- |
2−-- Module : Streamly.Internal.Data.Serialize.Parser
2+-- Module : Streamly.Internal.Data.Binary.Parser
33-- Copyright : (c) 2020 Composewell Technologies
44-- License : BSD-3-Clause
55-- Maintainer : streamly@composewell.com
@@ -13,7 +13,7 @@
1313-- representing Haskell data types is to write them to arrays and deserialize
1414-- the array using the Serialize type class.
1515
16−module Streamly.Internal.Data.Serialize.Parser
16+module Streamly.Internal.Data.Binary.Parser
1717 (
1818 -- * Type class
1919 FromBytes (..)
core/src/Streamly/Internal/Data/Serialize/Stream.hs → core/src/Streamly/Internal/Data/Binary/Stream.hsrenamed+2−2
@@ -1,5 +1,5 @@
11-- |
2−-- Module : Streamly.Internal.Data.Serialize.Stream
2+-- Module : Streamly.Internal.Data.Binary.Stream
33-- Copyright : (c) 2022 Composewell Technologies
44-- License : BSD-3-Clause
55-- Maintainer : streamly@composewell.com
@@ -17,7 +17,7 @@
1717
1818-- XXX remove unit, bool, ordering, and the type class as well
1919
20−module Streamly.Internal.Data.Serialize.Stream
20+module Streamly.Internal.Data.Binary.Stream
2121 (
2222 -- * Type class
2323 ToBytes (..)
core/streamly-core.cabal+4−2
@@ -293,8 +293,10 @@ library
293293
294294 -- streamly-core-array-types
295295 , Streamly.Internal.Data.MutByteArray
296− , Streamly.Internal.Data.Serialize.Parser
297− , Streamly.Internal.Data.Serialize.Stream
296+
297+ -- streaming and parsing Haskell types to/from bytes
298+ , Streamly.Internal.Data.Binary.Parser
299+ , Streamly.Internal.Data.Binary.Stream
298300
299301 -- May depend on streamly-core-stream
300302 , Streamly.Internal.Data.MutArray
test/Streamly/Test/Serialize/Serializable.hs+2−2
@@ -10,8 +10,8 @@ import Test.QuickCheck
1010 )
1111import Test.QuickCheck.Monadic (monadicIO)
1212
13−import qualified Streamly.Internal.Data.Serialize.Parser as Decoder
14−import qualified Streamly.Internal.Data.Serialize.Stream as Encoder
13+import qualified Streamly.Internal.Data.Binary.Parser as Decoder
14+import qualified Streamly.Internal.Data.Binary.Stream as Encoder
1515import qualified Streamly.Data.Stream as Stream
1616import Streamly.Internal.Data.Parser (Parser)
1717