packages feed

console-program 0.4.2.0 → 0.4.2.1

raw patch · 3 files changed

+11/−13 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +### 0.4.2.1++* Update Examples/Full.hs to work with new API+ ### 0.4.2.0  * Add `withNonOptions` function to consume any number of non-option arguments.
Examples/Full.hs view
@@ -22,20 +22,14 @@   ]  countUp,countDown,help :: Command IO-countUp = command-  {-    name        = "up"-  , description = "Count up"-  , action      = withOption verboseOpt $ \ v -> io $ if v == Quiet+countUp = command "up" "Count up" $+  withOption verboseOpt $ \ v -> io $+    if v == Quiet       then putStrLn "Counting quietly!"       else mapM_ print [1 ..]-  }-countDown = command-  {-    name        = "down"-  , description = "Count down from INT."-  , action      = withNonOption Argument.natural $ \ upperBound -> io $ mapM_ print [upperBound, pred upperBound .. 1]-  }+countDown = command "down" "Count down from INT." $+  withNonOption Argument.natural $ \ upperBound -> io $+    mapM_ print [upperBound, pred upperBound .. 1] help = command "help" "Show usage info" $ io (showUsage myCommands)  
console-program.cabal view
@@ -1,5 +1,5 @@ name:            console-program-version:         0.4.2.0+version:         0.4.2.1 cabal-Version:   >= 1.6 license:         BSD3 author:          Arie Peterson