Safe Haskell | None |
---|
NOTE: This module is a highly experimental preview release. It may change drastically, or be entirely removed, in a future release.
Documentation
newtype YamlParser a Source
YamlParser | |
|
withAnchor :: AnchorName -> Text -> (YamlValue -> YamlParser a) -> YamlParser aSource
withMapping :: Text -> ([(Text, YamlValue)] -> YamlParser a) -> YamlValue -> YamlParser aSource
withSequence :: Text -> ([YamlValue] -> YamlParser a) -> YamlValue -> YamlParser aSource
withText :: Text -> (Text -> YamlParser a) -> YamlValue -> YamlParser aSource
typeMismatch :: Text -> YamlValue -> YamlParser aSource
fromYaml :: YamlValue -> YamlParser aSource
type AnchorMap = Map AnchorName YamlValueSource
parseRawDoc :: (FromYaml a, MonadThrow m) => RawDoc -> m aSource
data YamlParseException Source
sinkRawDoc :: MonadThrow m => Consumer Event m RawDocSource
readYamlFile :: FromYaml a => FilePath -> IO aSource