Safe Haskell | None |
---|---|
Language | Haskell98 |
NOTE: This module is a highly experimental preview release. It may change drastically, or be entirely removed, in a future release.
- newtype YamlBuilder = YamlBuilder {
- unYamlBuilder :: [Event] -> [Event]
- class ToYaml a where
- mapping :: [(Text, YamlBuilder)] -> YamlBuilder
- array :: [YamlBuilder] -> YamlBuilder
- string :: Text -> YamlBuilder
- bool :: Bool -> YamlBuilder
- null :: YamlBuilder
- scientific :: Scientific -> YamlBuilder
- number :: Scientific -> YamlBuilder
- toByteString :: ToYaml a => a -> ByteString
- writeYamlFile :: ToYaml a => FilePath -> a -> IO ()
- (.=) :: ToYaml a => Text -> a -> (Text, YamlBuilder)
Documentation
newtype YamlBuilder Source #
YamlBuilder | |
|
toYaml :: a -> YamlBuilder Source #
mapping :: [(Text, YamlBuilder)] -> YamlBuilder Source #
array :: [YamlBuilder] -> YamlBuilder Source #
string :: Text -> YamlBuilder Source #
bool :: Bool -> YamlBuilder Source #
null :: YamlBuilder Source #
scientific :: Scientific -> YamlBuilder Source #
number :: Scientific -> YamlBuilder Source #
Deprecated: Use scientific
toByteString :: ToYaml a => a -> ByteString Source #