optparse-applicative
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.
At a glance
- Editor score8.9 / 10
- PricingFree plan
- Best forHaskell teams wanting composable parsers
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 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
optparse-applicative fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Not verified |
| Config file support | Not verified |
| Environment variables | Not verified |
| Typed API | Yes |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | hackage.haskell.org |
| Facts checked | 17 Nov 2026 |
Alternatives to optparse-applicative
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
See all optparse-applicative alternatives →
optparse-applicative vs the competition
- optparse-applicative vs Clap
- optparse-applicative vs Click
- optparse-applicative vs Typer
- optparse-applicative vs Symfony Console
- optparse-applicative vs System.CommandLine
- optparse-applicative vs bpaf
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
Featured on iTechGuides
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