yaml-0.8.8.4: Support for parsing and rendering YAML documents.

Safe HaskellNone

Text.Libyaml

Contents

Description

Low-level, streaming YAML interface. For a higher-level interface, see Data.Yaml.

Synopsis

The event stream

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

Constructors

YamlException String 
YamlParseException

problem, context, index, position line, position column

data YamlMark Source

The pointer position

Constructors

YamlMark 

Fields

yamlIndex :: Int
 
yamlLine :: Int
 
yamlColumn :: Int
 

Instances