describe- Combinators for describing binary data structures

Safe HaskellNone



Big endian combinators.

All combinators take a function that takes the structure being described (a) and produces the specified data type from it. Most of the time, this will be one of the structure's fields, which are all functions from the structure to the field type.


w8 :: (a -> Word8) -> Descriptor a Word8 Source #

i8 :: (a -> Int8) -> Descriptor a Int8 Source #

i16 :: (a -> Int16) -> Descriptor a Int16 Source #

i32 :: (a -> Int32) -> Descriptor a Int32 Source #

i64 :: (a -> Int64) -> Descriptor a Int64 Source #

f32 :: (a -> Float) -> Descriptor a Float Source #