on master help sign in
Move Serialize.Parser/Stream to Binary.Parser/Stream
d4db31cHarendra Kumar
core/docs/Changelog.md+2−2
@@ -25,8 +25,8 @@
25 exported from higher level internal modules. If you were importing any
25 exported from higher level internal modules. If you were importing any
26 of the missing modules then import the higher level modules now.
26 of the missing modules then import the higher level modules now.
27* Internal module changes:
27* Internal module changes:
28− * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Serialize.Parser
28+ * Streamly.Internal.Serialize.FromBytes -> Streamly.Internal.Data.Binary.Parser
29− * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Serialize.Stream
29+ * Streamly.Internal.Serialize.ToBytes -> Streamly.Internal.Data.Binary.Stream
30 * Streamly.Internal.Data.Unbox is now exported via Streamly.Internal.Data.Serialize
30 * Streamly.Internal.Data.Unbox is now exported via Streamly.Internal.Data.Serialize
31 * Streamly.Internal.Data.IORef.Unboxed is now exported via Streamly.Internal.Data.Serialize
31 * Streamly.Internal.Data.IORef.Unboxed is now exported via Streamly.Internal.Data.Serialize
32
32
core/src/Streamly/Internal/Data/Serialize/Parser.hs → core/src/Streamly/Internal/Data/Binary/Parser.hsrenamed+2−2
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Internal.Data.Serialize.Parser
2+-- Module : Streamly.Internal.Data.Binary.Parser
3-- Copyright : (c) 2020 Composewell Technologies
3-- Copyright : (c) 2020 Composewell Technologies
4-- License : BSD-3-Clause
4-- License : BSD-3-Clause
5-- Maintainer : streamly@composewell.com
5-- Maintainer : streamly@composewell.com
@@ -13,7 +13,7 @@
13-- representing Haskell data types is to write them to arrays and deserialize
13-- representing Haskell data types is to write them to arrays and deserialize
14-- the array using the Serialize type class.
14-- the array using the Serialize type class.
15
15
16−module Streamly.Internal.Data.Serialize.Parser
16+module Streamly.Internal.Data.Binary.Parser
17 (
17 (
18 -- * Type class
18 -- * Type class
19 FromBytes (..)
19 FromBytes (..)
core/src/Streamly/Internal/Data/Serialize/Stream.hs → core/src/Streamly/Internal/Data/Binary/Stream.hsrenamed+2−2
@@ -1,5 +1,5 @@
1-- |
1-- |
2−-- Module : Streamly.Internal.Data.Serialize.Stream
2+-- Module : Streamly.Internal.Data.Binary.Stream
3-- Copyright : (c) 2022 Composewell Technologies
3-- Copyright : (c) 2022 Composewell Technologies
4-- License : BSD-3-Clause
4-- License : BSD-3-Clause
5-- Maintainer : streamly@composewell.com
5-- Maintainer : streamly@composewell.com
@@ -17,7 +17,7 @@
17
17
18-- XXX remove unit, bool, ordering, and the type class as well
18-- XXX remove unit, bool, ordering, and the type class as well
19
19
20−module Streamly.Internal.Data.Serialize.Stream
20+module Streamly.Internal.Data.Binary.Stream
21 (
21 (
22 -- * Type class
22 -- * Type class
23 ToBytes (..)
23 ToBytes (..)
core/streamly-core.cabal+4−2
@@ -293,8 +293,10 @@ library
293
293
294 -- streamly-core-array-types
294 -- streamly-core-array-types
295 , Streamly.Internal.Data.MutByteArray
295 , Streamly.Internal.Data.MutByteArray
296+
297+ -- streaming and parsing Haskell types to/from bytes
296− , Streamly.Internal.Data.Serialize.Parser
298+ , Streamly.Internal.Data.Binary.Parser
297− , Streamly.Internal.Data.Serialize.Stream
299+ , Streamly.Internal.Data.Binary.Stream
298
300
299 -- May depend on streamly-core-stream
301 -- May depend on streamly-core-stream
300 , Streamly.Internal.Data.MutArray
302 , Streamly.Internal.Data.MutArray
test/Streamly/Test/Serialize/Serializable.hs+2−2
@@ -10,8 +10,8 @@ import Test.QuickCheck
10 )
10 )
11import Test.QuickCheck.Monadic (monadicIO)
11import Test.QuickCheck.Monadic (monadicIO)
12
12
13−import qualified Streamly.Internal.Data.Serialize.Parser as Decoder
13+import qualified Streamly.Internal.Data.Binary.Parser as Decoder
14−import qualified Streamly.Internal.Data.Serialize.Stream as Encoder
14+import qualified Streamly.Internal.Data.Binary.Stream as Encoder
15import qualified Streamly.Data.Stream as Stream
15import qualified Streamly.Data.Stream as Stream
16import Streamly.Internal.Data.Parser (Parser)
16import Streamly.Internal.Data.Parser (Parser)
17
17