config-ini: A library for simple INI-based configuration files.

[ 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)

Flags

Automatic Flags
NameDescriptionDefault
build-examples

Build example applications

Disabled

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.1.1, 0.2.2.0, 0.2.3.0, 0.2.4.0, 0.2.5.0, 0.2.6.0, 0.2.7.0
Dependencies base (>=4.9 && <4.10), config-ini, megaparsec (>=5.1.2 && <5.2), text (>=1.2.2 && <1.3), transformers (>=0.5.2 && <0.6), unordered-containers (>=0.2.7 && <0.3) [details]
License BSD-3-Clause
Copyright ©2016 Getty Ritter
Author Getty Ritter <gettyritter@gmail.com>
Maintainer Getty Ritter <gettyritter@gmail.com>
Revised Revision 1 made by HerbertValerioRiedel at 2016-11-23T09:06:46Z
Category Configuration
Home page https://github.com/aisamanra/config-ini
Source repo head: git clone git://github.com/aisamanra/config-ini.git
Uploaded by gdritter at 2016-11-22T08:35:45Z
Distributions Arch:0.2.6.0, Debian:0.2.4.0, Fedora:0.2.6.0, LTSHaskell:0.2.7.0, NixOS:0.2.7.0, Stackage:0.2.7.0, openSUSE:0.2.7.0
Reverse Dependencies 8 direct, 35 indirect [details]
Executables config-example, basic-example
Downloads 22502 total (135 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-11-22 [all 1 reports]