Commit Graph

74 Commits

Author SHA1 Message Date
Gabriel Gonzalez
f52b0c30b8 Update to latest Stackage resolver 2016-05-27 22:16:23 -07:00
Gabriel Gonzalez
60352d3f26 Merge pull request #22 from kuznero/master
Return usage info in getRecordPure
2016-05-07 14:21:43 -07:00
Roman Kuznetsov
e976af2461 Show usage + available option on getRecordPure 2016-05-07 23:09:14 +02:00
Roman Kuznetsov
2fd06b981e Return usage info in getRecordPure 2016-05-07 22:35:43 +02:00
Gabriel Gonzalez
d05557e683 Merge branch 'master' of github.com:Gabriel439/Haskell-Optparse-Generic-Library 2016-05-07 12:43:16 -07:00
Gabriel Gonzalez
4a0d4dc441 Disambiguate type operator export. Fixes #19
This is necessary to build against GHC 8
2016-05-07 12:40:10 -07:00
Gabriel Gonzalez
290ab35ac3 Merge pull request #21 from kuznero/master
Introduce getRecordPure :: (Maybe a, Text)
2016-05-07 10:31:46 -07:00
Roman Kuznetsov
0bbeed5b4f Introduce getRecordPure :: (Maybe a, Text) 2016-05-07 19:16:30 +02:00
Gabriel Gonzalez
809d998fa6 Merge pull request #17 from echatav/name-modifiers
name modifiers
2016-03-20 11:02:31 -07:00
Eitan Chatav
a864405b2e name modifiers 2016-03-19 21:23:46 -07:00
Gabriel Gonzalez
8094e9773f Version 1.0.1 => 1.1.0 2016-03-12 18:32:35 -08:00
Gabriel Gonzalez
5ae0bf25c9 Merge branch 'BerndSchwarzenbacher-issue-7/bytestring'. Fixes #7 2016-03-12 15:31:34 -08:00
Gabriel Gonzalez
071a4c259e Merge branch 'issue-7/bytestring' of https://github.com/BerndSchwarzenbacher/Haskell-Optparse-Generic-Library into BerndSchwarzenbacher-issue-7/bytestring
Conflicts:
	optparse-generic.cabal
2016-03-12 15:31:00 -08:00
Gabriel Gonzalez
beada50cec Move (<?>) up the export list 2016-03-12 15:14:05 -08:00
Gabriel Gonzalez
ebafc18896 Replace parse{Record/Field/Fields} with parseHelpful{Record/Field/Fields} 2016-03-12 15:09:53 -08:00
Gabriel Gonzalez
941dc76897 Document support for help descriptions 2016-03-12 14:46:20 -08:00
Gabriel Gonzalez
ace0157416 Fix haddocks
For some reason the `haddock` tool sometimes doesn't handle `\` near the
end of lines, even if you escape it with another `\` or you add a space after
it.
2016-03-12 14:15:27 -08:00
Gabriel Gonzalez
949c30258b Merge pull request #6 from echatav/master
Help messages
2016-03-12 12:17:24 -08:00
Gabriel Gonzalez
487e0c1b5d Version 1.0.0 => 1.0.1 2016-03-12 08:45:17 -08:00
Gabriel Gonzalez
c6e845cbe7 Fix parsing 4 or more alternatives 2016-03-12 08:36:59 -08:00
Gabriel Gonzalez
29365ac555 Fix endless loop when parsing three alternatives 2016-03-12 08:29:37 -08:00
Eitan Chatav
73d50b3e85 String ~> Text
I’m not sure what the performance implications are, but this way is
more consistent with the field label code.
2016-03-06 12:15:00 -08:00
Eitan Chatav
cc9bf846c0 don't need RankNTypes 2016-03-06 09:00:19 -08:00
Eitan Chatav
3a5cf11d97 small change
parseHelpfulFields mempty ~> parseHelpfulFields Nothing
2016-03-06 08:53:24 -08:00
Eitan Chatav
9802ebb4b4 some haddock comments 2016-03-06 08:40:11 -08:00
Eitan Chatav
d5c56d66ab remove commented out code 2016-03-06 08:30:33 -08:00
Eitan Chatav
43efbe5103 HelpMod ~> Maybe String
I used `String` instead of `Text` because `symbolVal` produces a
`String` and `Options.help` consumes a `String`.
2016-03-06 08:29:23 -08:00
Eitan Chatav
94d8bc9209 get rid of PolyKinds
use KindSignatures instead
2016-03-06 08:15:09 -08:00
Eitan Chatav
72f2de1059 rename to "Helpful"
and export constructor
2016-03-06 08:13:04 -08:00
Bernd Schwarzenbacher
0abdb05fd2 Use "TEXT" metavar for ByteStrings 2016-03-06 15:16:54 +01:00
Bernd Schwarzenbacher
cf907a3c31 Add lazy ByteStrings 2016-03-04 14:15:45 +01:00
Bernd Schwarzenbacher
e077f41cdd Use UTF8 encoded ByteStrings 2016-03-04 14:15:26 +01:00
Bernd Schwarzenbacher
9b8b9412eb Add ParseField instance for Data.ByteString.Char8 2016-03-03 11:49:27 +01:00
Eitan Chatav
5583e9ca42 one more shot... 2016-02-29 18:37:41 -08:00
Eitan Chatav
a6581c2169 Travis fix 2
Hope this works…
2016-02-29 18:24:43 -08:00
Eitan Chatav
8b819bc23f Fix Travis
Uh-oh, looks like Travis is using GHC-7.6.3 whose base doesn’t come
with Data.Proxy
2016-02-29 17:06:39 -08:00
Eitan Chatav
1ec46b0681 Help messages
Add help messages using type level strings.
2016-02-29 16:44:27 -08:00
Gabriel Gonzalez
d0a26abb9e Merge branch 'master' of github.com:Gabriel439/Haskell-Optparse-Generic-Library 2016-02-28 14:33:08 -08:00
Gabriel Gonzalez
7662683475 Merge pull request #2 from DaveCTurner/issue-2
ParseField Day?
2016-02-28 14:31:20 -08:00
Gabriel Gonzalez
7fc59e0505 Workaround to fix missing Generic instances in ghc-8 2016-02-28 14:26:53 -08:00
David Turner
ddfdf107a5 Add lower bound on time >= 1.5 due to use of readSTime etc. 2016-02-28 18:39:06 +00:00
David Turner
48af1f6ce6 Add ParseField instance for Data.Time.Calendar.Day 2016-02-28 18:21:59 +00:00
Gabriel Gonzalez
682b606eab Merge pull request #3 from iblech/patch-1
Tiny markup fix
2016-02-28 07:07:59 -08:00
Ingo Blechschmidt
8b0a801673 Tiny markup fix 2016-02-28 15:59:55 +01:00
Gabriel Gonzalez
23c275a73d Removed unnecessary -O flag
Cabal supplies this automatically and won't let you upload a package if you
supply it
2016-02-27 23:34:34 -08:00
Gabriel Gonzalez
8e45724108 Add README.md 2016-02-27 21:34:22 -08:00
Gabriel Gonzalez
fc1a740479 Fix use of typeOf and also work with older versions of base 2016-02-27 21:30:38 -08:00
Gabriel Gonzalez
b9af9515a4 Use Data.Typeable.typeOf instead of typeRep
This is for backwards compatibility with older versions of `base`
2016-02-27 21:24:01 -08:00
Gabriel Gonzalez
b51d7bb12b Add void as a dependency for earlier versions of base 2016-02-27 21:20:18 -08:00
Gabriel Gonzalez
41e2e43e92 Add .travis.yml 2016-02-27 21:04:32 -08:00