@hackage binrep0.1.0
Encode binary representations via types.
Installation
Tested Compilers
Dependencies (7)
- aeson >=2.0 && <2.1
- base >=4.14 && <5
- bytestring >=0.11 && <0.12
- cereal >=0.5.8.1 && <0.6
- refined >=0.6.3 && <0.7
- refined-with >=0.1.0 && <0.2 Show all…
Dependents (3)
@hackage/bytepatch, @hackage/binrep-instances, @hackage/gtvm-hs
binrep
Haskell data types with their binary representation explicitly built into the types. Intended for simple binary file parsing.
The binary and cereal libraries are for passing Haskell data between other
binary and cereal users. Thus, data representation is largely obscured. For
example, in cereal, all data is handled in big-endian format. If you use the
Serialize typeclass methods for parsing and serializing, you would never know.
binrep never makes decisions by itself. You can't parse/serialize a Word64
without either providing the endianness to use at runtime, or encoding the
endianness into the type.
See the Hackage documentation for details.