HsSyck-0.50: Fast, lightweight YAML loader and dumper

Safe HaskellNone

Data.Yaml.Syck

Synopsis

Documentation

parseYaml :: String -> IO YamlNode

Parse a regular Haskell string

emitYaml :: YamlNode -> IO String

Dump a YAML node into a regular Haskell string

parseYamlFile :: String -> IO YamlNode

Given a file name, parse contents of file

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

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

parseYamlBytes :: Buf -> IO YamlNode

Parse a ByteString buffer (this is faster)

data YamlNode

Constructors

MkNode 

Fields

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

tagNode :: YamlTag -> YamlNode -> YamlNode

type SYMID = CULong

packBuf :: String -> Buf

Convert a regular Haskell string into a ByteString buffer

unpackBuf :: Buf -> String

Convert a ByteString buffer into a regular Haskell string