summaryrefslogtreecommitdiff
path: root/Coalpit.hs
AgeCommit message (Collapse)Author
2019-03-08Edit descriptionsdefanor
2017-12-24Introduce 'Usage' structure.defanor
Produce it with 'argHelper' first, then translate into a string -- so that it can be reused for other kinds of output, such as roff and texinfo.
2017-12-24Update the exampledefanor
2017-12-20Remove Coalpit.IOdefanor
Better to focus on printing and parsing here, at least for now; besides, pipes are nice, but some may prefer other methods. The code is moved into an example instead.
2017-12-20Add Coalpit.IOdefanor
2017-12-20Prepare for IOdefanor
DSV functions operate on individual lines now, unit type gets printed/parsed as nothing (handier for argument parsing to set '()' when there's none, and that's what it should be anyway).
2017-12-19Reorganize the modulesdefanor
2017-12-17Add DSV supportdefanor
2017-12-16Add the 'handleRecCon' functiondefanor
Abstract the code with it.
2017-12-16Add more instancesdefanor
2017-12-16Move parsing helpers into Coalpit.Parsingdefanor
2017-12-16Update documentationdefanor
2017-12-16Add more instancesdefanor
Numeric and date/time types.
2017-12-16Refactordefanor
- Unify the naming - Merge all the classes into one
2017-12-16Generate usage strings for help messagesdefanor
2017-12-04Introduce the omitNamedOptions optiondefanor
It is nice to omit them, but may lead to ambiguity -- so better to provide a safer option.
2017-12-04Produce prettier error messagesdefanor
2017-12-04Add an example into haddock documentationdefanor
2017-12-04Be more strict on record selector name parsingdefanor
Ambiguity is possible if the parser accepts those optionally, so it should accept them depending on the provided options.
2017-12-04Make record selectors for mandatory arguments optionaldefanor
2017-12-03Add more instancesdefanor
2017-12-03Refactordefanor
Add annotations, fix -Wall warnings, lint, etc.
2017-12-03Add testsdefanor
2017-12-03Add List and Either instancesdefanor
No special handling for those yet, just for testing.
2017-12-03Parse lists of strings, not just stringsdefanor
Because arguments are lists of strings.
2017-12-03Add argument name modifiersdefanor
2017-12-03Omit constructor names, unless those are in sumsdefanor
2017-12-02Add special handling for named Maybe valuesdefanor
Allow to omit named options.
2017-12-02Use GHC.Generics instead of THdefanor
It's considerably cleaner and simpler with GHC.Generics. Megaparsec is also used now.
2016-11-25Initial commitdefanor