Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Parse and serialize between FDF files and `Map [Text] Text`.
Synopsis
- data FDF = FDF ByteString Field ByteString
- data Field = Field {}
- mapWithKey :: ([Text] -> Text -> Text) -> FDF -> FDF
- mapFieldWithKey :: ([Text] -> Text -> Text) -> Field -> Field
- foldMapWithKey :: Monoid a => ([Text] -> Text -> a) -> FDF -> a
- foldMapFieldWithKey :: Monoid a => ([Text] -> Text -> a) -> Field -> a
- traverseWithKey :: Applicative f => ([Text] -> Text -> f Text) -> FDF -> f FDF
- traverseFieldWithKey :: Applicative f => ([Text] -> Text -> f Text) -> Field -> f Field
- parse :: ByteString -> Either String FDF
- serialize :: FDF -> ByteString
Documentation
Parsed FDF data structure
The body of FDF is a tree of nestable Field
s.
traverseWithKey :: Applicative f => ([Text] -> Text -> f Text) -> FDF -> f FDF Source #
traverseFieldWithKey :: Applicative f => ([Text] -> Text -> f Text) -> Field -> f Field Source #
serialize :: FDF -> ByteString Source #