parseargs: Command-line argument parsing library for Haskell programs

[ bsd3, console, library, program ] [ Propose Tags ]

Parse command-line arguments


[Skip to Readme]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.2, 0.1.3, 0.1.3.1, 0.1.3.2, 0.1.3.4, 0.1.3.5, 0.1.5.2, 0.2, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.0.7, 0.2.0.8, 0.2.0.9
Dependencies base (<4.7), containers (<1) [details]
License BSD-3-Clause
Copyright Copyright (C) 2008 Bart Massey
Author Bart Massey <bart@cs.pdx.edu>
Maintainer Bart Massey <bart@cs.pdx.edu>
Revised Revision 1 made by AdamBergmark at 2015-05-13T13:28:56Z
Category System.Console
Home page http://wiki.cs.pdx.edu/bartforge/parseargs
Uploaded by BartonMassey at 2011-01-30T16:59:16Z
Distributions Debian:0.2.0.9, LTSHaskell:0.2.0.9, NixOS:0.2.0.9, Stackage:0.2.0.9
Reverse Dependencies 3 direct, 0 indirect [details]
Executables parseargs-example
Downloads 19423 total (47 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for parseargs-0.1.3.2

[back to package description]
parseargs -- command-line argument parsing for Haskell programs
version 0.1.3
Bart Massey <bart@cs.pdx.edu>
25 February 2010

This library provides System.Console.Parseargs, a module to
assist in argument parsing for Haskell stand-alone command
line programs.

To use this library, your program needs a structured
description of the arguments it expects.  It supplies this
description to an argument parser, which creates a data
structure from which parsed arguments can be extracted as
needed.  See the Haddock documentation for the gory details.

I have used this code with ghc 6.{6, 8, 10, 12} and various
development versions on Linux.  It is a fairly standard
Hackage-ready package, to the extent I know how to construct
such.

The 0.1.2 release includes a typeclass for argument types for
easier use.

The 0.1.3 release includes more uniform and usable error
handling.

This is not what I set out to build.  It definitely could
also use some work.  I use it all the time for writing
little programs, though.I thought others might find it
useful; I also have released other code that depends on it.

Have fun with it, and let me know if there are problems.