Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 | |
|
Instances
lookupAnchor :: AnchorName -> YamlParser (Maybe YamlValue) Source #
withAnchor :: AnchorName -> Text -> (YamlValue -> YamlParser a) -> YamlParser a Source #
withMapping :: Text -> ([(Text, YamlValue)] -> YamlParser a) -> YamlValue -> YamlParser a Source #
withSequence :: Text -> ([YamlValue] -> YamlParser a) -> YamlValue -> YamlParser a Source #
withText :: Text -> (Text -> YamlParser a) -> YamlValue -> YamlParser a Source #
typeMismatch :: Text -> YamlValue -> YamlParser a Source #
class FromYaml a where Source #
fromYaml :: YamlValue -> YamlParser a Source #
Instances
FromYaml Int Source # | |
Defined in Data.Yaml.Parser | |
FromYaml Text Source # | |
Defined in Data.Yaml.Parser | |
FromYaml YamlValue Source # | |
Defined in Data.Yaml.Parser | |
FromYaml a => FromYaml [a] Source # | |
Defined in Data.Yaml.Parser fromYaml :: YamlValue -> YamlParser [a] Source # |
parseRawDoc :: (FromYaml a, MonadThrow m) => RawDoc -> m a Source #
data YamlParseException Source #
Instances
Show YamlParseException Source # | |
Defined in Data.Yaml.Parser showsPrec :: Int -> YamlParseException -> ShowS # show :: YamlParseException -> String # showList :: [YamlParseException] -> ShowS # | |
Exception YamlParseException Source # | |
Defined in Data.Yaml.Parser |
sinkRawDoc :: MonadThrow m => ConduitM Event o m RawDoc Source #