describe-0.4.0.0: Combinators for describing binary data structures

Data.Serialize.Describe.Combinators.BE

Description

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.

# Documentation

newtype BE a Source #

Constructors

 BE FieldsunwrapBE :: a
Instances

w16 :: Integral i => (s -> i) -> Descriptor s i Source #

w32 :: Integral i => (s -> i) -> Descriptor s i Source #

w64 :: Integral i => (s -> i) -> Descriptor s i Source #

i16 :: Integral i => (s -> i) -> Descriptor s i Source #

i32 :: Integral i => (s -> i) -> Descriptor s i Source #

i64 :: Integral i => (s -> i) -> Descriptor s i Source #

f32 :: (Real f, Fractional f) => (s -> f) -> Descriptor s f Source #

f64 :: (Real f, Fractional f) => (s -> f) -> Descriptor s f Source #