optparse-declarative 0.4.0 → 0.4.1
raw patch · 3 files changed
+7/−5 lines, 3 files
Files
- ChangeLog.md +5/−1
- optparse-declarative.cabal +1/−1
- src/Options/Declarative.hs +1/−3
ChangeLog.md view
@@ -1,4 +1,8 @@-# 0.4.0+# 0.4.1 — 2020.11.01++- Allow no options for `[a]`++# 0.4.0 — 2020.11.01 ## Breaking changes
optparse-declarative.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: optparse-declarative-version: 0.4.0+version: 0.4.1 synopsis: Declarative command line option parser description: Declarative and easy to use command line option parser homepage: https://github.com/tanakh/optparse-declarative
src/Options/Declarative.hs view
@@ -123,9 +123,7 @@ argRead xs = Just <$> argRead xs instance {-# OVERLAPPABLE #-} ArgRead a => ArgRead [a] where- argRead xs = case mapMaybe (argRead . (:[])) xs of- [] -> Nothing- xs -> Just xs+ argRead xs = Just $ mapMaybe (argRead . (:[])) xs -- | The argument which has default value newtype Def (defaultValue :: Symbol) a =