@hackage / harg

Haskell program configuration using higher kinded data

Latest0.5.0.0

About

Metadata

  • Last updated , by alexpeits
  • License BSD-3-Clause
  • Categories Parsers, Systems Programming
  • Maintained by: alexpeitsinis@gmail.com

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    builddocstest (off by default)

    Build files in docs/ using markdown-unlit to test that examples are synced to the code and working. This should only be enabled on CI.

Readme

harg 🔩

Build Status Hackage

harg is a library for configuring programs by scanning command line arguments, environment variables, default values and more. Under the hood, it uses a subset of optparse-applicative to expose regular arguments, switch arguments and subcommands. The library relies heavily on the use of higher kinded data (HKD) thanks to the barbies library. Using higgledy also helps reduce boilerplate code significantly.

Documentation

To find out more, check out the docs or the package page on hackage. There is also an example module that serves as an extensive demonstration of the library.

Roadmap

  • Better errors using optparse-applicative's internals
  • Allow user to pass optparse-applicative preferences
  • Write tests

Credits