cymbal

Types

A YAML document which can be converted into a string using the encode function.

pub opaque type Yaml

Functions

pub fn array(i: List(Yaml)) -> Yaml

Create a YAML document from a list of YAML documents.

pub fn block(i: List(#(String, Yaml))) -> Yaml

Create a YAML document from a list of named YAML values.

pub fn bool(i: Bool) -> Yaml

Create a YAML document from a bool.

pub fn encode(doc: Yaml) -> String

Convert a YAML document into a string.

pub fn float(i: Float) -> Yaml

Create a YAML document from a float.

pub fn int(i: Int) -> Yaml

Create a YAML document from an int.

pub fn string(i: String) -> Yaml

Create a YAML document from a string.

Search Document