| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Text.Libyaml
Description
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 => ConduitM Event o m ByteString
- decode :: MonadResource m => ByteString -> ConduitM i Event m ()
- encodeFile :: MonadResource m => FilePath -> ConduitM Event o m ()
- decodeFile :: MonadResource m => FilePath -> ConduitM i Event m ()
- data YamlException
- data YamlMark = YamlMark {}
The event stream
Constructors
| Any | |
| Plain | |
| SingleQuoted | |
| DoubleQuoted | |
| Literal | |
| Folded | |
| PlainNoTag | 
type AnchorName = String Source #
type Anchor = Maybe AnchorName Source #
Encoding and decoding
encode :: MonadResource m => ConduitM Event o m ByteString Source #
decode :: MonadResource m => ByteString -> ConduitM i Event m () Source #
encodeFile :: MonadResource m => FilePath -> ConduitM Event o m () Source #
decodeFile :: MonadResource m => FilePath -> ConduitM i Event m () Source #
Error handling
data YamlException Source #
Constructors
| YamlException String | |
| YamlParseException | problem, context, index, position line, position column | 
| Fields | |
Instances