snoyberg/yaml — pull request #51 by sol (2014-11-19 11:06:06+00:00)
Title: (don't merge) Add a version of decodeFile with support for a !include directive

**NOTE: This is not meant to be merged as is but rather as a basic for a discussion.**

We need support for includes in YAML files. Our use case is to have credentials and other config values in one YAML file during development, but include the credentials from elsewhere on production.

It turns out that this can be trivial implemented on top of `yaml` (this PR includes some proof-of-concept code).

@snoyberg Do you think something like this is useful as part of `yaml`? If yes, I would prepare a proper PR (probably adding it as `decodeFileWithIncludes` to `Data.Yaml`).

BTW: For the used syntax, @soenkehahn did some research on what others use, see https://github.com/zalora/yaml/issues/1#issuecomment-61438368.