cmdargs 0.10.15 → 0.10.16
raw patch · 4 files changed
+9/−6 lines, 4 filesdep ~basedep ~processdep ~transformersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, process, transformers
API changes (from Hackage documentation)
Files
- CHANGES.txt +2/−0
- README.md +1/−1
- System/Console/CmdArgs/Implicit/Reader.hs +2/−2
- cmdargs.cabal +4/−3
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for CmdArgs +0.10.16+ Minor improvement to error messages 0.10.15 #43, GHC 8.2 compatibility 0.10.14
README.md view
@@ -1,4 +1,4 @@-# CmdArgs: Easy Command Line Processing [](https://hackage.haskell.org/package/cmdargs) [](https://travis-ci.org/ndmitchell/cmdargs)+# CmdArgs: Easy Command Line Processing [](https://hackage.haskell.org/package/cmdargs) [](https://travis-ci.org/ndmitchell/cmdargs) CmdArgs is a Haskell library for defining command line parsers. The two features that make it a better choice than the standard [getopt library](http://haskell.org/ghc/docs/latest/html/libraries/base/System-Console-GetOpt.html) are:
System/Console/CmdArgs/Implicit/Reader.hs view
@@ -76,9 +76,9 @@ where xs = [(map toLower c, compose0 x c) | c <- ctors x] - rd s | null ys = Left $ "Could not read, expected one of: " ++ unwords (map fst xs)+ rd s | null ys = Left $ "Could not read " ++ show s ++ ", expected one of: " ++ unwords (map fst xs) | Just (_,x) <- find ((==) s . fst) ys = Right x- | length ys > 1 = Left $ "Ambiguous read, could be any of: " ++ unwords (map fst ys)+ | length ys > 1 = Left $ "Ambiguous read for " ++ show s ++ ", could be any of: " ++ unwords (map fst ys) | otherwise = Right $ snd $ head ys where ys = filter (isPrefixOf s . fst) xs
cmdargs.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.18 build-type: Simple name: cmdargs-version: 0.10.15+version: 0.10.16 license: BSD3 license-file: LICENSE category: Console@@ -94,8 +94,9 @@ executable cmdargs default-language: Haskell2010 main-is: Main.hs- if flag(quotation)- other-extensions: TemplateHaskell+ other-extensions: TemplateHaskell+ build-depends:+ base, transformers, filepath, process, template-haskell if flag(testprog) && flag(quotation) buildable: True else