Safe Haskell | None |
---|
Low-level, streaming YAML interface. For a higher-level interface, see Data.Yaml.
- data Event
- data Style
- = Any
- | Plain
- | SingleQuoted
- | DoubleQuoted
- | Literal
- | Folded
- data Tag
- type AnchorName = String
- type Anchor = Maybe AnchorName
- encode :: MonadResource m => GSink Event m ByteString
- decode :: MonadResource m => ByteString -> GSource m Event
- encodeFile :: MonadResource m => FilePath -> GInfSink Event m
- decodeFile :: MonadResource m => FilePath -> GSource m Event
- data YamlException
- data YamlMark = YamlMark {}
The event stream
type AnchorName = StringSource
type Anchor = Maybe AnchorNameSource
Encoding and decoding
encode :: MonadResource m => GSink Event m ByteStringSource
decode :: MonadResource m => ByteString -> GSource m EventSource
encodeFile :: MonadResource m => FilePath -> GInfSink Event mSource
decodeFile :: MonadResource m => FilePath -> GSource m EventSource
Error handling
data YamlException Source
YamlException String | |
YamlParseException | problem, context, index, position line, position column |