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