Module

Data.YAML.Foreign.Encode

Package
purescript-yaml-next
Repository
archaeron/purescript-yaml-next

#YValue Source

data YValue

Instances

#ToYAML Source

class ToYAML a  where

Members

Instances

#entry Source

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"

#(:=) Source

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

#object Source

object :: Array Pair -> YValue

Helper function to create a YAML object.

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

#printYAML Source

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