Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

optparse-applicative

Free#6 of 60 in Command-Line Interface Frameworks

optparse-applicative: A composable, typed toolkit for building Haskell command-line interfaces. Ranked #6 of 60 in Command-Line Interface Frameworks by our editors (8.9/10); pricing: Free plan; best for haskell teams wanting composable parsers.

8.9/10Editor score
optparse-applicative8.9 View optparse docs

At a glance

  • Editor score
    8.9 / 10
  • Pricing
    Free plan
  • Best for
    Haskell teams wanting composable parsers
  • Free plan
    Yes
  • Paid from
    Free
  • Shell completion
    Yes
  • Facts checked
    17 Nov 2026
  • Where it wins

    • Applicative combinators produce typed parser results
    • Generated help plus Bash, Zsh, and Fish completions
    • Commands and sub-parsers support multi-function CLIs
  • Where it doesn't

    • Applicative API is specific to Haskell development
    • Support is provided through documentation
    • No AI features are included

Our verdict on optparse-applicative

optparse-applicative is an open-source Haskell library for developers building command-line applications. Its applicative parser API handles command-line options, positional arguments, and validation while returning typed results through Haskell types. The library also generates usage lines and help screens, making it suitable for teams that want command definitions and user guidance to live together in code. Commands and sub-parsers extend the same model to multi-function command-line interfaces.

The parser-composition model is the standout feature. Applicative combinators let teams assemble option and argument parsers into structured results, while custom option readers and completers accommodate application-specific input rules. The package includes completion support for Bash, Zsh, and Fish, and its runners can generate completion scripts for options and arguments. These capabilities give Haskell teams a consistent path from parsing and validation to shell interaction without leaving the library's typed approach.

optparse-applicative is distributed through Hackage under the BSD-3-Clause license and is free to use as open-source software. Its scope is focused: it is a Haskell library rather than a general-purpose, cross-language CLI framework, so teams working outside Haskell should choose a tool aligned with their language stack. Support is centered on documentation, and there are no AI features. Pick it when typed parser composition, generated help, nested commands, and shell completions are priorities; consider an alternative when your project is not written in Haskell or requires capabilities beyond this focused parser library.

Your product? Our editors can test optparse-applicative in depth and publish a review, labelled as paid · from $149/mo →

optparse-applicative pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on hackage.haskell.org

optparse-applicative fact sheet

Free planYes
Paid fromFree
Shell completionYes
Nested subcommandsYes
Code generationNot verified
Config file supportNot verified
Environment variablesNot verified
Typed APIYes
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingFree plan
Websitehackage.haskell.org
Facts checked17 Nov 2026

Alternatives to optparse-applicative

See all optparse-applicative alternatives →

optparse-applicative vs the competition

Compare optparse-applicative with any tool side by side →

Used optparse-applicative? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used optparse-applicative for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — optparse-applicative 8.9/10

optparse-applicative is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/optparse-applicative/"><img src="https://www.itechguides.com/best/badge/optparse-applicative.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update