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

Safe HaskellNone
LanguageHaskell98

Data.Yaml.Builder

Description

NOTE: This module is a highly experimental preview release. It may change drastically, or be entirely removed, in a future release.

Synopsis

Documentation

newtype YamlBuilder #

Constructors

YamlBuilder 

Fields

class ToYaml a where #

Minimal complete definition

toYaml

Methods

toYaml :: a -> YamlBuilder #

Instances

ToYaml Int # 

Methods

toYaml :: Int -> YamlBuilder #

ToYaml Text # 

Methods

toYaml :: Text -> YamlBuilder #

ToYaml YamlBuilder # 
ToYaml a => ToYaml [(Text, a)] # 

Methods

toYaml :: [(Text, a)] -> YamlBuilder #

ToYaml a => ToYaml [a] # 

Methods

toYaml :: [a] -> YamlBuilder #

number :: Scientific -> YamlBuilder #

Deprecated: Use scientific

writeYamlFile :: ToYaml a => FilePath -> a -> IO () #

(.=) :: ToYaml a => Text -> a -> (Text, YamlBuilder) #