fit-0.5: FIT file decoder

Safe HaskellSafe-Inferred
LanguageHaskell2010

Fit.Internal.Architecture

Description

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.

Synopsis

Documentation

data Arch Source

Constructors

ArchLittle 
ArchBig 

Instances

newtype WithArch a b Source

Tag a value for use in a little- or big-endian context (with ArchLittle and ArchBig, respectively)

Constructors

WithArch 

Fields

unArch :: b
 

Instances

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

withBE :: a -> BigEndian a Source

Alias for pure