Module

Data.YAML.Foreign.Encode

#YValue

data YValue

Instances

#ToYAML

class ToYAML a  where

Members

Instances

#entry

entry :: forall a. ToYAML a => String -> a -> Pair

Helper function to create a key-value tuple for a YAML object.

name = "Name" := "This is the name"

#(:=)

Operator alias for Data.YAML.Foreign.Encode.entry (left-associative / precedence 4)

#object

object :: Array Pair -> YValue

Helper function to create a YAML object.

obj = object [ "Name" := "This is the name", "Size" := 1.5 ]

#printYAML

printYAML :: forall a. ToYAML a => a -> String

Modules