Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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 #