-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parse and serialize FDF, the Forms Data Format -- -- This is a hacked-together library to parse and serialize FDF, Adobe's -- Forms Data Format. It does not follow the specification, but -- seems to work for simple cases. @package forms-data-format @version 0.2.0.1 -- | Parse and serialize between FDF files and `Map [Text] Text`. module Text.FDF -- | Parsed FDF data structure data FDF FDF :: ByteString -> Field -> ByteString -> FDF -- | The body of FDF is a tree of nestable Fields. data Field Field :: Text -> Maybe Text -> [Field] -> Field [name] :: Field -> Text [value] :: Field -> Maybe Text [kids] :: 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 instance GHC.Show.Show Text.FDF.Field instance GHC.Show.Show Text.FDF.FDF