homepage: https://github.com/amilkov3/confide
changelog-type: ''
hash: 691d701931f8a9b322146446d18adc271e4665453722b2f3da6c540c461d8107
test-bench-deps:
  base: -any
  text: -any
  deiko-config: -any
  confide: -any
  tasty-hunit: -any
  tasty: -any
maintainer: amilkov3@gmail.com
synopsis: derive typeclass instances for decoding types from HOCON conf
changelog: ''
basic-deps:
  exceptions: ==0.8.3
  base: ! '>=4.7 && <5'
  text: ==1.2.2.2
  deiko-config: ! '>=0.5.0.1'
all-versions:
- '0.1.0.0'
author: Alex Milkov
latest: '0.1.0.0'
description-type: markdown
description: ! "# confide\n\n[![Build status](https://img.shields.io/travis/amilkov3/confide/master.svg)](https://travis-ci.org/amilkov3/confide)\n\n[Confide](https://github.com/estatico/confide)
  port to Haskell (using `GHC.Generics` as opposed to Shapeless to generate \n[FromConf](https://github.com/estatico/confide/blob/master/core/src/main/scala/io/estatico/confide/FromConf.scala)
  typeclass instances). Uses [deiko-config](https://hackage.haskell.org/package/deiko-config)
  to parse HOCON .conf file and read in types\n\n## Usage\n\nHOCON `.conf` file\n```\na=\"hello\"\n\nb
  {\n  y=true\n  z {\n    x=5\n  }\n}\n```\n\n```haskell\n\n{-# LANGUAGE OverloadedStrings
  #-}\n{-# LANGUAGE TypeApplications #-}\n\nmodule Test where\n\nimport Data.Confide\nimport
  Data.Confide.Generic\nimport qualified Data.Text as T\n\ndata Foo = Foo {x :: Integer}
  deriving (Generic, Show)\ndata Bar = Bar {y :: Bool, z :: Foo} deriving (Generic,
  Show)\ndata Baz = Baz {a :: T.Text, b :: Bar} deriving (Generic, Show)\n\ninstance
  FromConf Foo\ninstance FromConf Bar\ninstance FromConf Baz\n\nmain :: IO ()\nmain
  = do\n  c <- loadConfig \"project/path/to/confFile.conf\"\n  baz <- get @Baz \"\"
  c\n  print baz\n\n```\n\nGHCI\n\n```\n$ main \nBaz {a = \"hello\", b = Bar {y =
  True, z = Foo {x = 5}}}\n```\n"
license-name: BSD3

Update from Hackage at 2018-03-07T18:58:38Z
Update from Hackage at 2018-03-07T18:58:38Z
