@@ -6,10 +6,14 @@
6-- Stability : pre-release
6-- Stability : pre-release
7-- Portability : GHC
7-- Portability : GHC
9−-- Parsers for binary encoded basic Haskell data types.
9+-- Decode Haskell data types from byte streams.
11module Streamly.Internal.Serialize.FromBytes
11module Streamly.Internal.Serialize.FromBytes
12− ( FromBytes (..)
14+ FromBytes (..)
15 , ordering
19 , ordering
@@ -40,6 +44,11 @@ import qualified Streamly.Internal.Data.Parser as PR
40import qualified Streamly.Internal.Data.Parser.ParserD as PRD
44import qualified Streamly.Internal.Data.Parser.ParserD as PRD
41 (Parser(..), Initial(..), Step(..), toParserK)
45 (Parser(..), Initial(..), Step(..), toParserK)
47+-- Note: The () type does not need to have an on-disk representation in theory.
48+-- But we use a concrete representation for it so that we count how many ()
49+-- types we have. Or when we have an array of units the array a concrete
43-- | A value of type '()' is encoded as @0@ in binary encoding.
52-- | A value of type '()' is encoded as @0@ in binary encoding.