Safe Haskell | None |
---|---|
Language | Haskell2010 |
- readFitRaw :: ByteString -> Either String Fit
- parseFit :: Parser Fit
- parseHeader :: FitParser FitHeader
- parseMessages :: FitParser [Message]
- parseMessage :: FitParser Message
- parseMessageDef :: LocalMessageType -> FitParser MessageDefinition
- parseFieldDef :: FitParser FieldDef
- parseDataMessage :: MessageDefinition -> FitParser Message
- parseField :: FieldDef -> FitParser Field
- parseValue :: BaseType -> FitParser Value
- parseArray :: Int -> BaseType -> FitParser Array
- parseSeq :: Int -> FitParser a -> FitParser (Seq a)
- parseString :: Parser Text
- parseCTDataMessage :: TimeOffset -> MessageDefinition -> FitParser Message
- mkHeader :: Word8 -> MessageHeader
Documentation
readFitRaw :: ByteString -> Either String Fit Source
Parse a strict ByteString
containing the FIT data into a Fit
value
Parsers for components of FIT files
parseField :: FieldDef -> FitParser Field Source
parseValue :: BaseType -> FitParser Value Source
parseString :: Parser Text Source
Parse a null-terminated UTF-8 string.
parseCTDataMessage :: TimeOffset -> MessageDefinition -> FitParser Message Source
Parse a compressed-timestamp message, using the TimeOffset
from the
compressed-timestamp message header.
mkHeader :: Word8 -> MessageHeader Source
Transform a FIT message header byte into a MessageHeader