Command line option parsers
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
There are several packages that want to simplify the task of writing command line parsers. Unfortunately, they are distributed across several Hackage categories. Here is an attempt to list them:
Package | Multi-mode | Extensions | Remark |
---|---|---|---|
cmdargs | X | TemplateHaskell, SYB generics, ViewPatterns, ... | unsafePerformIO
|
cmdlib | X | SYB generics | based on GetOpt |
cmdtheline | X | FlexibleInstances (although unnecessary) | shows help as man-page |
console-program | X | TemplateHaskell | configure options via files |
getflag | . | Haskell98 | like GetOpt but with Unix/Plan 9 option syntax |
hflags | |||
multiarg | |||
options | |||
optparse-applicative | X | . | Applicative Functor |
parseargs | |||
ReadArgs | |||
simpleargs | |||
yaop |