← All packages
optparse-applicative0.18.1.0
Utilities and combinators for parsing command line options
Open the imported Cabal file ↗
- author
- Paolo Capriotti, Huw Campbell
- bug-reports
- https://github.com/pcapriotti/optparse-applicative/issues
- build-type
- Simple
- cabal-version
- >= 1.10
- category
- System, CLI, Options, Parsing
- copyright
- (c) 2012-2017 Paolo Capriotti <paolo@capriotti.io>
- extra-source-files
- CHANGELOG.md README.md tests/alt.err.txt tests/cabal.err.txt tests/carry.err.txt tests/commands.err.txt tests/commands_header.err.txt tests/commands_header_full.err.txt tests/dropback.err.txt tests/hello.err.txt tests/helponempty.err.txt tests/helponemptysub.err.txt tests/long_equals.err.txt tests/formatting.err.txt tests/formatting-long-subcommand.err.txt tests/nested.err.txt tests/optional.err.txt tests/nested_optional.err.txt tests/subparsers.err.txt
- homepage
- https://github.com/pcapriotti/optparse-applicative
- license
- BSD3
- license-file
- LICENSE
- maintainer
- huw.campbell@gmail.com
- name
- optparse-applicative
- synopsis
- Utilities and combinators for parsing command line options
- tested-with
- GHC==9.6.1 GHC==9.4.4 GHC==9.2.7 GHC==9.0.2 GHC==8.10.7 GHC==8.8.4 GHC==8.6.5 GHC==8.4.4 GHC==8.2.2 GHC==8.0.2 GHC==7.10.3 GHC==7.8.4 GHC==7.6.3 GHC==7.4.2 GHC==7.2.2 GHC==7.0.4
- version
- 0.18.1.0
- x-revision
- 1
Show the complete metadata as JSON
{
"schemaVersion": 1,
"name": "optparse-applicative",
"version": "0.18.1.0",
"cabalVersion": "1.10",
"buildType": "Simple",
"fields": {
"author": [
"Paolo Capriotti, Huw Campbell"
],
"bug-reports": [
"https://github.com/pcapriotti/optparse-applicative/issues"
],
"build-type": [
"Simple"
],
"cabal-version": [
">= 1.10"
],
"category": [
"System, CLI, Options, Parsing"
],
"copyright": [
"(c) 2012-2017 Paolo Capriotti <paolo@capriotti.io>"
],
"description": [
"optparse-applicative is a haskell library for parsing options\non the command line, and providing a powerful applicative\ninterface for composing them.\n.\noptparse-applicative takes care of reading and validating the\narguments passed to the command line, handling and reporting\nerrors, generating a usage line, a comprehensive help screen,\nand enabling context-sensitive bash, zsh, and fish completions.\n.\nSee the included README for detailed instructions and examples,\nwhich is also available on github\n<https://github.com/pcapriotti/optparse-applicative>."
],
"extra-source-files": [
"CHANGELOG.md\nREADME.md\ntests/alt.err.txt\ntests/cabal.err.txt\ntests/carry.err.txt\ntests/commands.err.txt\ntests/commands_header.err.txt\ntests/commands_header_full.err.txt\ntests/dropback.err.txt\ntests/hello.err.txt\ntests/helponempty.err.txt\ntests/helponemptysub.err.txt\ntests/long_equals.err.txt\ntests/formatting.err.txt\ntests/formatting-long-subcommand.err.txt\ntests/nested.err.txt\ntests/optional.err.txt\ntests/nested_optional.err.txt\ntests/subparsers.err.txt"
],
"homepage": [
"https://github.com/pcapriotti/optparse-applicative"
],
"license": [
"BSD3"
],
"license-file": [
"LICENSE"
],
"maintainer": [
"huw.campbell@gmail.com"
],
"name": [
"optparse-applicative"
],
"synopsis": [
"Utilities and combinators for parsing command line options"
],
"tested-with": [
"GHC==9.6.1\nGHC==9.4.4\nGHC==9.2.7\nGHC==9.0.2\nGHC==8.10.7\nGHC==8.8.4\nGHC==8.6.5\nGHC==8.4.4\nGHC==8.2.2\nGHC==8.0.2\nGHC==7.10.3\nGHC==7.8.4\nGHC==7.6.3\nGHC==7.4.2\nGHC==7.2.2\nGHC==7.0.4"
],
"version": [
"0.18.1.0"
],
"x-revision": [
"1"
]
},
"components": [
{
"kind": "library",
"name": "main",
"tree": {
"data": {
"buildable": null,
"exposedModules": [
"Options.Applicative",
"Options.Applicative.Arrows",
"Options.Applicative.BashCompletion",
"Options.Applicative.Builder",
"Options.Applicative.Builder.Completer",
"Options.Applicative.Builder.Internal",
"Options.Applicative.Common",
"Options.Applicative.Extra",
"Options.Applicative.Help",
"Options.Applicative.Help.Chunk",
"Options.Applicative.Help.Core",
"Options.Applicative.Help.Levenshtein",
"Options.Applicative.Help.Pretty",
"Options.Applicative.Help.Types",
"Options.Applicative.NonEmpty",
"Options.Applicative.Types",
"Options.Applicative.Internal"
],
"otherModules": [],
"dependencies": [
{
"package": "base",
"range": ">=4.5 && <5",
"libraries": [
"main"
]
},
{
"package": "text",
"range": ">=1.2",
"libraries": [
"main"
]
},
{
"package": "transformers",
"range": ">=0.2 && <0.7",
"libraries": [
"main"
]
},
{
"package": "transformers-compat",
"range": ">=0.3 && <0.8",
"libraries": [
"main"
]
},
{
"package": "prettyprinter",
"range": ">=1.7 && <1.8",
"libraries": [
"main"
]
},
{
"package": "prettyprinter-ansi-terminal",
"range": ">=1.1.2 && <1.2",
"libraries": [
"main"
]
}
],
"fields": {}
},
"branches": [
{
"condition": {
"compiler": "ghc",
"range": ">=8.0"
},
"then": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [],
"dependencies": [],
"fields": {}
},
"branches": [
{
"condition": {
"compiler": "ghc",
"range": "<8.8"
},
"then": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [],
"dependencies": [],
"fields": {}
},
"branches": []
},
"else": null
}
]
},
"else": null
},
{
"condition": {
"flag": "process"
},
"then": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [],
"dependencies": [
{
"package": "process",
"range": ">=1.0 && <1.7",
"libraries": [
"main"
]
}
],
"fields": {}
},
"branches": []
},
"else": null
},
{
"condition": {
"not": {
"compiler": "ghc",
"range": ">=8"
}
},
"then": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [],
"dependencies": [
{
"package": "semigroups",
"range": ">=0.10 && <0.21",
"libraries": [
"main"
]
},
{
"package": "fail",
"range": ">=4.9 && <4.10",
"libraries": [
"main"
]
}
],
"fields": {}
},
"branches": []
},
"else": null
}
]
}
},
{
"kind": "test-suite",
"name": "tests",
"tree": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [
"Examples.Alternatives",
"Examples.Cabal",
"Examples.Commands",
"Examples.Formatting",
"Examples.Hello",
"Examples.LongSub"
],
"dependencies": [
{
"package": "base",
"range": "-any",
"libraries": [
"main"
]
},
{
"package": "optparse-applicative",
"range": "-any",
"libraries": [
"main"
]
},
{
"package": "QuickCheck",
"range": ">=2.8 && <2.15",
"libraries": [
"main"
]
}
],
"fields": {
"type": [
"exitcode-stdio-1.0"
]
}
},
"branches": [
{
"condition": {
"not": {
"compiler": "ghc",
"range": ">=8"
}
},
"then": {
"data": {
"buildable": null,
"exposedModules": [],
"otherModules": [],
"dependencies": [
{
"package": "semigroups",
"range": "-any",
"libraries": [
"main"
]
}
],
"fields": {}
},
"branches": []
},
"else": null
}
]
}
}
],
"setupDependencies": [],
"flags": [
{
"name": "process",
"default": true,
"manual": false,
"description": "Depend on the process package for Bash autocompletion"
}
],
"sourceRepositories": [
{
"kind": "head",
"fields": {
"location": [
"https://github.com/pcapriotti/optparse-applicative.git"
],
"type": [
"git"
]
}
}
],
"warnings": [],
"sourceUrl": "https://hackage.haskell.org/package/optparse-applicative-0.18.1.0/optparse-applicative.cabal",
"sha256": "f30973861ac7e7ebff05ff8c7c3d1e4d283a1f3850e1cc14106b0693ec1b6d82",
"importedAt": "2026-10-14T12:51:11.043Z",
"dependencies": [
{
"package": "base",
"range": ">=4.5 && <5",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "text",
"range": ">=1.2",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "transformers",
"range": ">=0.2 && <0.7",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "transformers-compat",
"range": ">=0.3 && <0.8",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "prettyprinter",
"range": ">=1.7 && <1.8",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "prettyprinter-ansi-terminal",
"range": ">=1.1.2 && <1.2",
"libraries": [
"main"
],
"component": "library:main",
"conditions": []
},
{
"package": "process",
"range": ">=1.0 && <1.7",
"libraries": [
"main"
],
"component": "library:main",
"conditions": [
{
"flag": "process"
}
]
},
{
"package": "semigroups",
"range": ">=0.10 && <0.21",
"libraries": [
"main"
],
"component": "library:main",
"conditions": [
{
"not": {
"compiler": "ghc",
"range": ">=8"
}
}
]
},
{
"package": "fail",
"range": ">=4.9 && <4.10",
"libraries": [
"main"
],
"component": "library:main",
"conditions": [
{
"not": {
"compiler": "ghc",
"range": ">=8"
}
}
]
},
{
"package": "base",
"range": "-any",
"libraries": [
"main"
],
"component": "test-suite:tests",
"conditions": []
},
{
"package": "optparse-applicative",
"range": "-any",
"libraries": [
"main"
],
"component": "test-suite:tests",
"conditions": []
},
{
"package": "QuickCheck",
"range": ">=2.8 && <2.15",
"libraries": [
"main"
],
"component": "test-suite:tests",
"conditions": []
},
{
"package": "semigroups",
"range": "-any",
"libraries": [
"main"
],
"component": "test-suite:tests",
"conditions": [
{
"not": {
"compiler": "ghc",
"range": ">=8"
}
}
]
}
],
"exposedModules": [
"Options.Applicative",
"Options.Applicative.Arrows",
"Options.Applicative.BashCompletion",
"Options.Applicative.Builder",
"Options.Applicative.Builder.Completer",
"Options.Applicative.Builder.Internal",
"Options.Applicative.Common",
"Options.Applicative.Extra",
"Options.Applicative.Help",
"Options.Applicative.Help.Chunk",
"Options.Applicative.Help.Core",
"Options.Applicative.Help.Levenshtein",
"Options.Applicative.Help.Pretty",
"Options.Applicative.Help.Types",
"Options.Applicative.NonEmpty",
"Options.Applicative.Types",
"Options.Applicative.Internal"
],
"documents": {
"readme": {
"status": "available",
"sha256": "38eb9ba18c619ac342e5a5dca77658d3f88b331ab28e4fed10d24068c7e0e487",
"error": null,
"checkedAt": "2026-10-14T12:51:11.984Z"
},
"changelog": {
"status": "available",
"sha256": "7b4a16691acb7ea1c4290302f8d15f08969f91cdd4851ece2fc92470bea8bd8f",
"error": null,
"checkedAt": "2026-10-14T12:51:12.034Z"
}
},
"documentation": null,
"versions": [
{
"version": "0.18.1.0",
"imported_at": "2026-10-14T12:51:11.043Z"
}
]
}