optima 0.3.0.3 → 0.4
raw patch · 2 files changed
+3/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Optima: explicitlyRepresented :: a -> Text -> Default a
+ Optima: explicitlyRepresented :: (a -> Text) -> a -> Default a
Files
- library/Optima.hs +2/−4
- optima.cabal +1/−1
library/Optima.hs view
@@ -178,8 +178,6 @@ paramHelp description format <> defaultValue def --- enumValue :: Text -> Default a -> (a -> Text) -> Attoparsec.Parser a -> Param a- {-| A parameter with no value. Fails if it's not present. Thus it can be composed using Alternative.@@ -213,8 +211,8 @@ {-| Provide a default value with explicit textual representation. -}-explicitlyRepresented :: a -> Text -> Default a-explicitlyRepresented value representation = SpecifiedDefault value representation+explicitlyRepresented :: (a -> Text) -> a -> Default a+explicitlyRepresented render value = SpecifiedDefault value (render value) {-| Provide a default value with textual representation formed using the implicit Show instance.
optima.cabal view
@@ -1,5 +1,5 @@ name: optima-version: 0.3.0.3+version: 0.4 category: CLI, Parsing, Options synopsis: Simple command line interface arguments parser homepage: https://github.com/metrix-ai/optima