Commit Graph

241 Commits

Author SHA1 Message Date
Ben Gamari
f8101b5a95 Bump upper bound on process
This is for GHC 7.7
2013-03-19 15:06:12 -04:00
Paolo Capriotti
59486682ae Export Completer in Builder.Completer (fixes #38). 2013-03-18 01:31:41 +00:00
Paolo Capriotti
329248a80d Re-export some of the internal types in Builder (#38). 2013-03-17 22:43:35 +00:00
Paolo Capriotti
2b1cb0c683 Update custom reader example in the README (fixes #41). 2013-03-17 18:56:56 +00:00
Paolo Capriotti
90ca6dcc18 Update CHANGELOG. 2013-03-17 18:52:25 +00:00
Paolo Capriotti
ea2982f959 Add context to parse errors (fixes #40).
Print option name and string which failed to parse together with the
error message.
2013-03-17 18:48:52 +00:00
Paolo Capriotti
42be28cfe3 Use custom monad for option readers.
Readers need to be polymorphic in the monad, as they are used for both
options and arguments, so they use `fail` for parse errors.

However, the `Monad` instance for `Either` doesn't define `fail`, so the
parser used to throw a runtime exception in case of reader errors.

This is now fixed by using a custom monad ReadM which defines `fail`
correctly.
2013-03-17 18:24:52 +00:00
Paolo Capriotti
ec5850996f Bump version to 0.6.0. 2013-03-17 17:41:37 +00:00
Paolo Capriotti
ba7fc6f87e Merge CHANGELOG changes from 0.4. 2012-12-24 21:42:58 +00:00
Paolo Capriotti
ddf5ffd366 Update CHANGELOG. 2012-12-24 21:42:08 +00:00
Paolo Capriotti
0b0d6cd46e Bump version to 0.5.2.1. 2012-12-24 21:36:49 +00:00
Paolo Capriotti
0cacaaee87 Remove last mention of '&' from the docs (fixes #37). 2012-12-24 21:34:37 +00:00
Paolo Capriotti
e7330a7da6 Update CHANGELOG. 2012-12-23 21:57:37 +00:00
Paolo Capriotti
0608a8e0a7 Bump version to 0.5.2. 2012-12-23 21:56:33 +00:00
Paolo Capriotti
5f3ae68ea8 Fix compatibility with GHC 7.2. 2012-12-23 20:43:49 +00:00
Paolo Capriotti
cc14cdf180 Update CHANGELOG. 2012-12-23 18:39:23 +00:00
Paolo Capriotti
8fdc854b42 Improve docs for the Arrow interface (fixes #26).
Document the fact that the `Arrow` interface does not add
expressiveness to the library.
2012-12-23 18:35:47 +00:00
Paolo Capriotti
b55648c287 Update CHANGELOG. 2012-12-23 18:27:18 +00:00
Paolo Capriotti
0ddd2f652c Document Mod type (fixed #29). 2012-12-23 18:21:55 +00:00
Paolo Capriotti
8c5613e3f5 Add showHelpOnError prefs modifier. 2012-12-23 18:04:24 +00:00
Paolo Capriotti
307d78ce57 Update CHANGELOG. 2012-12-23 18:03:05 +00:00
Paolo Capriotti
bc0656f1da Bump version to 0.5.1. 2012-12-23 17:55:20 +00:00
Paolo Capriotti
2ed50522b8 Add option to disable backtracking (fixes #31). 2012-12-23 17:52:50 +00:00
Paolo Capriotti
6f2a01d8bf Remove redundant usage of tryP. 2012-12-23 17:33:14 +00:00
Paolo Capriotti
e7cc1568c5 Add example of using the 'optional' combinator (fixes #25). 2012-12-23 17:21:02 +00:00
Paolo Capriotti
50e1014c6a Add example for flag' (fixes #34). 2012-12-23 17:13:33 +00:00
Paolo Capriotti
9f221b4461 Improve brief description of hidden args (fixes #35).
Do not add parentheses around alternatives where all options except one
are hidden.
2012-12-23 17:01:03 +00:00
Paolo Capriotti
21d6faa08e Update CHANGELOG. 2012-12-22 12:21:52 +00:00
Paolo Capriotti
cb9af6b8b8 Remove all mentions to (&) from the README (#37). 2012-12-22 12:21:23 +00:00
Paolo Capriotti
c53de8ab6c Deprecate (&) (#37). 2012-12-22 12:15:03 +00:00
Paolo Capriotti
0130960783 Replace (&) with (<>) everywhere (fixes #37). 2012-12-22 12:14:58 +00:00
Paolo Capriotti
45d3954d77 Replace (&) with (<>) in the README (#37). 2012-12-22 12:14:54 +00:00
Paolo Capriotti
42d4ef690b Add source repository to .cabal file. 2012-12-22 12:04:12 +00:00
Paolo Capriotti
153fd46306 Add identifier lists to imports. 2012-12-22 11:59:00 +00:00
Paolo Capriotti
76f1f19426 Remove uses of DeriveFunctor. 2012-12-22 11:38:49 +00:00
Paolo Capriotti
7a71cfa65e Update CHANGELOG. 2012-12-22 11:29:35 +00:00
Paolo Capriotti
065ca3aa89 Merge branch 'error-handling' 2012-12-22 11:17:17 +00:00
Paolo Capriotti
75c6303bee Update dependency bounds. 2012-12-22 11:17:12 +00:00
Paolo Capriotti
b23c57bd20 Update docs after error handling changes. 2012-12-22 11:07:47 +00:00
Paolo Capriotti
3038274dd3 Re-export ParseError from Builder.
The noArgError modifier takes a ParseError argument.
2012-12-22 10:56:07 +00:00
Paolo Capriotti
c19ad8bb00 Implement error handling for ShowHelpText. 2012-11-13 18:11:17 +00:00
Paolo Capriotti
aa38bcd5ce Add ShowHelpText constructor to parse errors. 2012-11-13 16:16:33 +00:00
Paolo Capriotti
1e74712ab6 Add option to display help text on error. 2012-11-13 15:46:22 +00:00
Paolo Capriotti
3d10209afa Show error message for unknown option. 2012-11-13 14:23:30 +00:00
Paolo Capriotti
905be128c5 Merge pull request #27 from markwright/master
Please include the test source files in the cabal sdist tarball
2012-11-08 05:17:44 -08:00
Mark Wright
50f60574f6 Include the test source files in the cabal sdist tarball 2012-11-09 00:10:38 +11:00
Paolo Capriotti
550ed3c3a2 Update changelog 2012-11-02 11:18:41 +00:00
Paolo Capriotti
5b98e211b9 Bump version to 0.5.0 2012-11-02 11:15:49 +00:00
Henning Thielemann
4a6a4a265c Internal.P: converted to a newtype
This is better for encapsulation and we can finally drop FlexibleInstances.
2012-11-02 11:15:13 +00:00
Henning Thielemann
7cb610470d Internal.Completion: converted to a newtype
This is better for encapsulation and saves us from FlexibleInstances.
2012-11-02 11:15:11 +00:00