BSD-3-Clause licensed by Matvey Aksenov
Maintained by [email protected]
This version can be pinned in stack with:envparse-0.4@sha256:e8fd40315b21a5d6687ace27e726d8eb06357aa7adafb012720f4b1f9159faa5,2853

Module documentation for 0.4

Depends on 2 packages(full list with versions):

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

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.