mirror of
https://github.com/composewell/streamly.git
synced 2024-10-26 19:50:19 +03:00
Move ToBytes and FromBytes under Data.Serialize
This commit is contained in:
parent
e1152e4a45
commit
621cb65f50
@ -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
|
||||
|
||||
|
@ -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 (..)
|
@ -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 (..)
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user