optparse-generic 1.4.2 → 1.4.3
raw patch · 3 files changed
+11/−5 lines, 3 filesdep ~optparse-applicative
Dependency ranges changed: optparse-applicative
Files
- CHANGELOG.md +5/−0
- optparse-generic.cabal +2/−2
- src/Options/Generic.hs +4/−3
CHANGELOG.md view
@@ -1,3 +1,8 @@+1.4.3++* Export internal `readIntegralBounded` utility+* Build against `optparse-applicative-0.16.0.0`+ 1.4.2 * New `unwrap` function
optparse-generic.cabal view
@@ -1,5 +1,5 @@ Name: optparse-generic-Version: 1.4.2+Version: 1.4.3 Cabal-Version: >=1.10 Build-Type: Simple License: BSD3@@ -29,7 +29,7 @@ text < 1.3 , transformers >= 0.2.0.0 && < 0.6 , Only < 0.2 ,- optparse-applicative >= 0.14.0.0 && < 0.16,+ optparse-applicative >= 0.16.0.0 && < 0.17, time >= 1.5 && < 1.10, void < 0.8 , bytestring < 0.11
src/Options/Generic.hs view
@@ -299,6 +299,7 @@ , ParseField(..) , Only(..) , getOnly+ , readIntegralBounded , Modifiers(..) , parseRecordWithModifiers , defaultModifiers@@ -372,7 +373,7 @@ s <- Options.readerAsk case Text.Read.readMaybe s of Just x -> return x- Nothing -> Options.readerAbort Options.ShowHelpText+ Nothing -> Options.readerAbort (Options.ShowHelpText Nothing) {-| A class for all record fields that can be parsed from exactly one option or argument on the command line@@ -493,7 +494,7 @@ s <- Options.readerAsk case s of [ch] -> return ch- _ -> Options.readerAbort Options.ShowHelpText+ _ -> Options.readerAbort (Options.ShowHelpText Nothing) parseListOfField = parseHelpfulString "STRING" @@ -1234,7 +1235,7 @@ showHelpText :: Options.ParserPrefs -> Options.ParserInfo a -> IO () showHelpText pprefs pinfo = Options.handleParseResult . Options.Failure $- Options.parserFailure pprefs pinfo Options.ShowHelpText mempty+ Options.parserFailure pprefs pinfo (Options.ShowHelpText Nothing) mempty -- | Marshal any value that implements 'ParseRecord' from the command line -- and unwrap its fields alongside an io action to print the help message