decode package:yaml

Deprecated: Please use decodeEither or decodeThrow, which provide information on how the decode failed
Like decodeEither', but decode multiple documents.
Like decodeFileEither, but decode multiple documents.
Like decodeFileThrow, but decode multiple documents.
Like decodeFileWithWarnings, but decode multiple documents.
Like decodeThrow, but decode multiple documents.
Deprecated: Please use decodeEither' or decodeThrow, which provide more useful failures
More helpful version of decodeEither which returns the YamlException.
Deprecated: Please use decodeFileEither, which does not confused type-directed and runtime exceptions.
A version of decodeFile which should not throw runtime exceptions.
A version of decodeFileEither lifted to MonadIO
A version of decodeFileEither that returns warnings along with the parse result.
A version of decodeEither' lifted to MonadThrow
Like decodeFile but with support for relative and absolute includes. The syntax for includes follows the form:
somekey: !include ./somefile.yaml
Like decodeFileEither but with support for relative and absolute includes. The syntax for includes follows the form:
somekey: !include ./somefile.yaml
Decode a YAML file at compile time. Only available on GHC version 7.8.1 or higher.

Examples

{-# LANGUAGE TemplateHaskell #-}

config :: Config
config = $$(decodeFile "config.yaml")