Please see the README on GitHub at https://github.com/alexpeits/harg#readme


Keywords
cli, hkd, library, options, parsing, system, Propose Tags , Options.Harg, Options.Harg.Cmdline, Options.Harg.Config, Options.Harg.Construct, Options.Harg.Het.All, Options.Harg.Het.HList, Options.Harg.Het.Nat, Options.Harg.Het.Prod, Options.Harg.Het.Proofs, Options.Harg.Het.Variant, Options.Harg.Nested, Options.Harg.Operations, Options.Harg.Pretty, Options.Harg.Single, Options.Harg.Sources, Options.Harg.Sources.DefaultStr, Options.Harg.Sources.Env, Options.Harg.Sources.JSON, Options.Harg.Sources.NoSource, Options.Harg.Sources.Types, Options.Harg.Sources.YAML, Options.Harg.Subcommands, Options.Harg.Types, Options.Harg.Util, optparse-applicative, barbies, higgledy, docs, hackage, example, jcpetruzza, i-am-tom, jmackie, configuration, haskell, option-parser
License
BSD-3-Clause
Install
cabal install harg-0.5.0.0

Documentation

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