yaml-0.8.5.2: 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

data Style

Instances

Bounded Style 
Enum Style 
Eq Style 
Data Style 
Ord Style 
Read Style 
Show Style 
Typeable Style 

data Tag

Instances

Eq Tag 
Data Tag 
Read Tag 
Show Tag 
Typeable Tag 

type AnchorName = String

type Anchor = Maybe AnchorName

Encoding and decoding

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

Error handling

data YamlException

Constructors

YamlException String 
YamlParseException

problem, context, index, position line, position column

Fields

yamlProblem :: String
 
yamlContext :: String
 
yamlProblemMark :: YamlMark
 

Instances

Show YamlException 
Typeable YamlException 
Exception YamlException 

data YamlMark

The pointer position

Constructors

YamlMark 

Fields

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

Instances

Show YamlMark