Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 Text Source # | |
Defined in Data.Yaml.Parser | |
FromYaml YamlValue Source # | |
Defined in Data.Yaml.Parser | |
FromYaml Int 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
Exception YamlParseException Source # | |
Defined in Data.Yaml.Parser | |
Show YamlParseException Source # | |
Defined in Data.Yaml.Parser showsPrec :: Int -> YamlParseException -> ShowS # show :: YamlParseException -> String # showList :: [YamlParseException] -> ShowS # |
sinkRawDoc :: MonadThrow m => ConduitM Event o m RawDoc Source #