envparse

Parse environment variables https://supki.github.io/envparse

Version on this page:0.4
LTS Haskell 9.14:0.4
Stackage Nightly 2017-11-19:0.4
Latest on Hackage:0.4
BSD3 licensed by Matvey Aksenov

envparse

Hackage Build Status

optparse-applicative, but for environment variables

See example/Main.hs for an executable example

Changes

0.4

  • Supported GHC 8.0.1.

  • On GHC 7.8 and newer, as a secutiry measure, all declared variables are unset by the end of a successful parse. If you want to keep the variable in the environment, use the keep modifier. (https://github.com/supki/envparse/pull/7)

0.3.4

  • Added splitOn.

0.3.3

  • Removed the unnecessary AsEmpty and AsUnset constraints on the error type in the flag and switch parsers.

0.3.2

  • Added showDef.

0.3.1

  • Supported Generically derived Parsers on GHC 7.10.

0.3.0

  • Supported user-defined Reader errors. (https://github.com/supki/envparse/pull/4)

  • Widened the range of GHC versions to test the library with from 7.6–7.8 to 7.6–HEAD.

0.2.2

  • Added helpDoc, a Parser pretty-printer for use in error messages.

0.2.1

  • Cosmetic changes in the help output.

0.2.0

  • Added prefixed.

  • Added parseOr, a slightly generalized version of parse.

  • Renamed parseTest to parsePure.

0.1.0

  • Initial release.
Depends on:
Used by 1 package:
comments powered byDisqus