Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
FIT files can contain values encoded with both little-endian and big-endian orderings, and this can vary throughout the file. This module provides some helper types for using parsers with the correct endian-ness during the parse. See the Fit.Internal.Numbers and Fit.Internal.FitParser modules for example use.
- data Arch
- newtype WithArch a b = WithArch {
- unArch :: b
- type LittleEndian a = WithArch ArchLittle a
- type BigEndian a = WithArch ArchBig a
- withLE :: a -> LittleEndian a
- withBE :: a -> BigEndian a
Documentation
Tag a value for use in a little- or big-endian context (with ArchLittle
and ArchBig
, respectively)
Functor (WithArch a) | |
Applicative (WithArch a) |
type LittleEndian a = WithArch ArchLittle a Source
Convenience type for values to use in a little-endian context
type BigEndian a = WithArch ArchBig a Source
Convenience type for values to use in a big-endian context
withLE :: a -> LittleEndian a Source
Alias for pure