Copyright | (c) 2019-2021 Vaclav Svejcar |
---|---|
License | BSD-3-Clause |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Headroom.Configuration.Enrich
Description
This module contains mini-DSL for enrichment of generated YAML configurations, i.e. replacing default values with real ones, etc. This is intentionally done without the Data.Yaml and parsing, because that way all comments inside YAML file would be lost.
Data Types
Simple wrapper representing single step of enrichment.
Field Generators
Arguments
:: ToJSON a | |
=> [a] | input list used as value |
-> Text | field name |
-> (ValueType, Text) | generated fields as |
Generates YAML array field from given list and field name.
Arguments
:: Text | input text value |
-> Text | field name |
-> (ValueType, Text) | generated fields as |
Generates YAML string from given text value and field name.