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

Safe HaskellNone
LanguageHaskell98

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 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

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