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

Module documentation for 0.5.0

Depends on 2 packages(full list with versions):
Used by 3 packages in nightly-2022-11-17(full list with versions):

envparse

optparse-applicative, but for environment variables

See example/Main.hs for an executable example

As to why anyone would want to use environment to configure their applications, here’s what some folks think about it.

Changes

0.5

0.4.1

  • Supported GHC 8.4.3.

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.