Move ToBytes and FromBytes under Data.Serialize

This commit is contained in:
Harendra Kumar 2023-11-20 04:14:57 +05:30
parent e1152e4a45
commit 621cb65f50
5 changed files with 11 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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

View File

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