Move Serialize.Parser/Stream to Binary.Parser/Stream

This commit is contained in:
Harendra Kumar 2023-11-26 02:52:19 +05:30
parent 8ff75f25df
commit d4db31c512
5 changed files with 12 additions and 10 deletions

View File

@ -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

View File

@ -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 (..)

View File

@ -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 (..)

View File

@ -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

View File

@ -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)