packages feed

optima 0.1.1 → 0.1.2

raw patch · 2 files changed

+12/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Optima: flag :: Text -> Param ()

Files

library/Optima.hs view
@@ -8,6 +8,7 @@   -- * Param   Param,   value,+  flag,   switch,   -- * Value   Value,@@ -134,6 +135,16 @@       foldMap Optparse.short shortName <>       paramHelp description format <>       defaultValue def++{-|+A parameter with no value. Fails if it's not present.+Thus it can be composed using Alternative.+-}+flag :: Text {-^ Description. Can be empty -} -> Param ()+flag description =+  Param (\ shortName longName ->+    Optparse.flag' ()+      (longParamName longName <> foldMap Optparse.short shortName <> paramHelp description UnspecifiedFormat))  {-| A parameter with no value, the presence of which is interpreted as 'True'.
optima.cabal view
@@ -1,5 +1,5 @@ name: optima-version: 0.1.1+version: 0.1.2 category: CLI, Parsing, Options synopsis: Simple command line interface arguments parser homepage: https://github.com/metrix-ai/optima