homepage: https://github.com/simspace/embed-config#readme
changelog-type: markdown
hash: 71b2a48bfad8b717bad6165dc6795c1baa400db21549e7eeff5b41e978be2199
test-bench-deps:
  base: '>=4.7 && <5'
  hspec: -any
  embed-config: -any
  aeson: -any
maintainer: carymrobbins@gmail.com
synopsis: Reasonable conventions for embedding YAML configuration with Template Haskell
changelog: |
  # Changelog for embed-config

  ## 0.0.0.0

  * First release
basic-deps:
  bytestring: '>=0.10.12.0 && <1'
  base: '>=4.7 && <5'
  file-embed: '>=0.0.15.0 && <1'
  aeson: '>=1.5.6.0 && <2'
  template-haskell: '>=2.16.0.0 && <3'
  yaml: '>=0.11.8.0 && <1'
all-versions:
- 0.0.0.0
author: Cary Robbins
latest: 0.0.0.0
description-type: markdown
description: |
  # embed-config [![embed-config](https://img.shields.io/hackage/v/embed-config.svg?logo=haskell&color=blueviolet)](https://hackage.haskell.org/package/embed-config)

  Reasonable conventions for embedding YAML configuration with Template Haskell

  ## Quick Start

  **config/settings.yml**
  ```yaml
  foo-bar: 42
  baz-quux: hello
  ```

  **src/MyApp/Config.hs**
  ```haskell
  module MyApp.Config where

  import Data.Yaml.Config.Embed (AesonKebab(..), embedConfig)

  loadConfig :: IO Config
  loadConfig = $(embedConfig)

  data Config = Config
    { fooBar :: Int
    , bazQuux :: String
    } deriving stock (Show, Eq, Generic)
      deriving (FromJSON) via AesonKebab Config
  ```
license-name: BSD-3-Clause

Update from Hackage at 2022-07-25T22:05:56Z
Update from Hackage at 2022-07-25T22:05:56Z
