HsSyck-0.43: Fast, lightweight YAML loader and dumper

Data.Yaml.Syck

Synopsis

Documentation

parseYaml :: String -> IO YamlNodeSource

Parse a regular Haskell string

emitYaml :: YamlNode -> IO StringSource

Dump a YAML node into a regular Haskell string

parseYamlFile :: String -> IO YamlNodeSource

Given a file name, parse contents of file

emitYamlFile :: FilePath -> YamlNode -> IO ()Source

Given a file name, dump a YAML node into that file

parseYamlBytes :: Buf -> IO YamlNodeSource

Parse a ByteString buffer (this is faster)

data YamlNode Source

Constructors

MkNode 

Fields

n_id :: !SYMID
 
n_elem :: !YamlElem
 
n_tag :: !YamlTag
 
n_anchor :: !YamlAnchor
 

packBuf :: String -> BufSource

Convert a regular Haskell string into a ByteString buffer

unpackBuf :: Buf -> StringSource

Convert a ByteString buffer into a regular Haskell string