The config-ini package

[ Tags: bsd3, configuration, library ] [ Propose Tags ]

The config-ini library is a small monadic language for writing simple configuration languages with convenient, human-readable error messages.

parseConfig :: IniParser (Text, Int, Bool)
parseConfig = section "NETWORK" $ do
  user <- field        "user"
  port <- fieldOf      "port" number
  enc  <- fieldFlagDef "encryption" True
  return (user, port, enc)

Properties

Versions 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), config-ini, megaparsec (>=5.1.2 && <5.2), text (>=1.2.2 && <1.3), transformers (>=0.4.1 && <0.6), unordered-containers (>=0.2.7 && <0.3) [details]
License BSD3
Copyright ©2016 Getty Ritter
Author Getty Ritter <gettyritter@gmail.com>
Maintainer Getty Ritter <gettyritter@gmail.com>
Category Configuration
Home page https://github.com/aisamanra/config-ini
Bug tracker https://github.com/aisamanra/config-ini/issues
Source repository head: git clone git://github.com/aisamanra/config-ini.git
Uploaded Mon Jul 17 22:31:08 UTC 2017 by gdritter
Distributions NixOS:0.1.2.1
Executables config-example, basic-example
Downloads 1107 total (22 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-07-17 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
build-examples

Build example applications

DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees