dev-haskell / optparse-applicative

Utilities and combinators for parsing command line options

Official package sites : https://github.com/pcapriotti/optparse-applicative ·

Here is a simple example of an applicative option parser: @ data Sample = Sample &#x20; &#x7b; hello :: String &#x20; , quiet :: Bool &#x7d; sample :: Parser Sample sample = Sample &#x20; \<$\> strOption &#x20; ( long \"hello\" &#x20; & metavar \"TARGET\" &#x20; & help \"Target for the greeting\" ) &#x20; \<*\> switch &#x20; ( long \"quiet\" &#x20; & help \"Whether to be quiet\" ) @ The parser is built using applicative style starting from a set of basic combinators. In this example, @hello@ is defined as an 'option' with a @String@ argument, while @quiet@ is a boolean 'flag' (called 'switch'). A parser can be used like this: @ greet :: Sample -> IO () greet (Sample h False) = putStrLn $ \"Hello, \" ++ h greet _ = return () main :: IO () main = execParser opts \>\>= greet &#x20; where &#x20; opts = info (helper \<*\> sample) &#x20; ( fullDesc &#x20; & progDesc \"Print a greeting for TARGET\" &#x20; & header \"hello - a test for optparse-applicative\" ) @ The @greet@ function is the entry point of the program, while @opts@ is a complete description of the program, used when generating a help text. The 'helper' combinator takes any parser, and adds a @help@ option to it (which always fails). The @hello@ option in this example is mandatory (since it doesn't have a default value), so running the program without any argument will display a help text: >hello - a test for optparse-applicative > >Usage: hello --hello TARGET [--quiet] > Print a greeting for TARGET > >Available options: > -h,--help Show this help text > --hello TARGET Target for the greeting > --quiet Whether to be quiet containing a short usage summary, and a detailed list of options with descriptions.

v0.14.2.0 :: 0/0.14.2.0 :: gentoo

Modified
License
BSD
Keywords
~amd64 ~x86
USE flags
doc hscolour profile test

v0.13.0.0 :: 0/0.13.0.0 :: gentoo

Modified
License
BSD
Keywords
amd64 x86
USE flags
doc hscolour profile test

v0.11.0.2 :: 0/0.11.0.2 :: gentoo

Modified
License
BSD
Keywords
amd64 x86 ~ppc ~ppc64 ~sparc
USE flags
doc hscolour profile

v0.9.1.1 :: 0/0.9.1.1 :: gentoo

Modified
License
BSD
Keywords
~amd64 ~ppc ~ppc64 ~sparc ~x86
USE flags
doc hscolour profile test

v0.8.1-r1 :: 0/0.8.1 :: gentoo

Modified
License
BSD
Keywords
~amd64 ~ppc ~ppc64 ~sparc ~x86
USE flags
doc hscolour profile test

v0.7.0.2 :: 0/0.7.0.2 :: gentoo

Modified
License
BSD
Keywords
amd64 x86 ~ppc ~ppc64 ~sparc
USE flags
doc hscolour profile test

v0.5.2.1 :: 0/0.5.2.1 :: gentoo

Modified
License
BSD
Keywords
~amd64 ~ppc ~ppc64 ~sparc ~x86
USE flags
doc hscolour profile test

General

doc
Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
hscolour
Include coloured haskell sources to generated documentation (dev-haskell/hscolour)
profile
Add support for software performance analysis (will likely vary from ebuild to ebuild)
test
Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

dev-haskell / ansi-wl-pprint : The Wadler/Leijen Pretty Printer for colored ANSI terminal output

dev-haskell / cabal : A framework for packaging Haskell software

dev-haskell / fail : Forward-compatible MonadFail class

dev-haskell / haddock : A documentation-generation tool for Haskell libraries

dev-haskell / hscolour : Colourise Haskell code

dev-haskell / hunit : A unit testing framework for Haskell

dev-haskell / quickcheck : Automatic testing of Haskell programs

dev-haskell / semigroups : Anything that associates

dev-haskell / test-framework : Framework for running and organising tests, with HUnit and QuickCheck support

dev-haskell / test-framework-hunit : HUnit support for the test-framework package

dev-haskell / test-framework-quickcheck2 : QuickCheck2 support for the test-framework package

dev-haskell / test-framework-th-prime : Template Haskell for test framework

dev-haskell / transformers : Concrete functor and monad transformers

dev-haskell / transformers-compat : A small compatibility shim for dev-haskell/transformers

dev-lang / ghc : The Glasgow Haskell Compiler

dev-haskell / ansi-wl-pprint : The Wadler/Leijen Pretty Printer for colored ANSI terminal output

dev-haskell / fail : Forward-compatible MonadFail class

dev-haskell / semigroups : Anything that associates

dev-haskell / transformers : Concrete functor and monad transformers

dev-haskell / transformers-compat : A small compatibility shim for dev-haskell/transformers

dev-lang / ghc : The Glasgow Haskell Compiler

app-emacs / ghc-mod : Happy Haskell Programming

dev-haskell / criterion : Robust, reliable performance measurement and analysis

dev-haskell / dav : RFC 4918 WebDAV support

dev-haskell / hjsmin : Haskell implementation of a javascript minifier

dev-haskell / optparse-simple : Simple interface to optparse-applicative

dev-haskell / stack : The Haskell Tool Stack

dev-haskell / tasty : Modern and extensible testing framework

dev-haskell / tasty-golden : Golden tests support for tasty

dev-haskell / tasty-rerun : Run tests by filtering the tests depending on the result of previous runs

dev-haskell / wai-app-static : WAI application for static serving

dev-haskell / yesod-platform : Meta package for Yesod (deprecated)

dev-util / hadolint : Dockerfile linter, validate inline bash, written in Haskell

dev-vcs / git-annex : manage files with git, without checking their contents into git

Repository mirror & CI · gentoo
Merge updates from master
Manuel Rüger · gentoo
dev-haskell/optparse-applicative: Version bump to 0.14.2.0
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Sergei Trofimovich · gentoo
dev-haskell/optparse-applicative: stable 0.13.0.0 for x86/amd64, bug #631138
Package-Manager: Portage-2.3.10, Repoman-2.3.3 RepoMan-Options: --include-arches="amd64 x86"
Robin H. Johnson · gentoo
Drop $Id$ per council decision in bug #611234.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Sergei Trofimovich · gentoo
dev-haskell/optparse-applicative: bump up to 0.13.0.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Sergei Trofimovich · gentoo
dev-haskell/optparse-applicative: drop old
Package-Manager: portage-2.2.28
Sergei Trofimovich · gentoo
dev-haskell/optparse-applicative: stable on amd64/x86, bug #554002
Package-Manager: portage-2.2.20
Mikle Kolyada · gentoo
dev-haskell/optparse-applicative: amd64 stable wrt bug #550414
Package-Manager: portage-2.2.20.1
Robin H. Johnson · gentoo
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed