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
- | 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 = StringSource
type Anchor = Maybe AnchorNameSource
Encoding and decoding
encode :: MonadResource m => Consumer Event m ByteStringSource
decode :: MonadResource m => ByteString -> Producer m EventSource
encodeFile :: MonadResource m => FilePath -> Consumer Event m ()Source
decodeFile :: MonadResource m => FilePath -> Producer m EventSource
Error handling
data YamlException Source
YamlException String | |
YamlParseException | problem, context, index, position line, position column |