purescript-yaml/docs/Data/YAML/Foreign/Decode.md
Matthew Gordon e392713273 Updates for psc 0.10.5.
- Bumped dependencies
- Use generic rep
- New operator syntax
- New qualified import syntax
2017-02-04 18:56:10 +00:00

28 lines
549 B
Markdown

## Module Data.YAML.Foreign.Decode
#### `parseYAML`
``` purescript
parseYAML :: String -> F Foreign
```
Attempt to parse a YAML string, returning the result as foreign data.
#### `readYAML`
``` purescript
readYAML :: forall a. IsForeign a => String -> F a
```
Attempt to parse a YAML string into the datastructure you want.
#### `readYAMLGeneric`
``` purescript
readYAMLGeneric :: forall a rep. (Generic a rep, GenericDecode rep) => Options -> String -> F a
```
Automatically generate a YAML parser for your data from a generic instance.