on master help sign in
Add some module level notes to ToBytes
commita819eb7e5d01c3879ea2af79282070c141daa154 authorHarendra Kumar <harendra@composewell.com> dateSat 19 Aug 2023, 07:54 (3 years ago) parent2e53b60
1 file changed+10
core/src/Streamly/Internal/Serialize/ToBytes.hs+10
core/src/Streamly/Internal/Serialize/ToBytes.hs+10
@@ -6,6 +6,16 @@
66-- Portability : GHC
77--
88-- Encode Haskell data types to byte streams.
9+--
10+-- The primary purpose of this module is to serialize primitive Haskell types
11+-- to streams for convenient byte by byte processing when such a need arises.
12+--
13+-- It would be inefficient to use this to build byte streams from algebraic
14+-- data types. For general serialization of ADTs please use the Serialize type
15+-- class instances. The fastest way to convert general Haskell types to byte
16+-- streams is to serialize them to an array and then stream the array.
17+
18+-- XXX remove unit, bool, ordering, and the type class as well
919
1020module Streamly.Internal.Serialize.ToBytes
1121 (