| Safe Haskell | None |
|---|
Text.Libyaml
Description
Low-level, streaming YAML interface. For a higher-level interface, see Data.Yaml.
Synopsis
- 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
- = YamlException String
- | YamlParseException { }
- data YamlMark = YamlMark {}
The event stream
Constructors
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
Instances