HsSyck-0.53: Fast, lightweight YAML loader and dumper

Safe HaskellNone
LanguageHaskell98

Data.Yaml.Syck

Synopsis

Documentation

parseYaml :: String -> IO YamlNode Source

Parse a regular Haskell string

emitYaml :: YamlNode -> IO String Source

Dump a YAML node into a regular Haskell string

parseYamlFile :: String -> IO YamlNode Source

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

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
 

tagNode :: YamlTag -> YamlNode -> YamlNode Source

packBuf :: String -> Buf Source

Convert a regular Haskell string into a ByteString buffer

unpackBuf :: Buf -> String Source

Convert a ByteString buffer into a regular Haskell string