hackage.haskell.org : commander
An extensible, format-agnostic command parsing library designed to be easy to use and syntactically light weight. Assuming we write a parser to convert a command such as Into path and flags such as ["calculator", "add"] and Map.fromList [("v","yes")], This library will then match said path and flags against a nested record type of commands built up using lightweight monadic syntax and tries to execute the associated function if the matching and value converting works, or returns an error if the path/flags fail to match any command. To get started, see the documentation for the Commander module below. Additionally, an examples folder is included in the source illustrating usage - see https://github.com/jsdw/hs-commander for more.
Registry
-
Source
- JSON
- codemeta.json
purl: pkg:hackage/commander
Keywords:
bsd3
, library
, program
, text
, Propose Tags
License: BSD-3-Clause
Latest release: almost 10 years ago
First release: almost 10 years ago
Downloads: 894 total
Stars: 7 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 22 hours ago
jsdw
1 package894 downloads