ronn-optparse-applicative 1.0.2.0 → 1.0.2.1
raw patch · 3 files changed
+16/−12 lines, 3 filesdep ~ronnPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ronn
API changes (from Hackage documentation)
Files
CHANGELOG.md view
@@ -1,4 +1,8 @@-## [_Unreleased_](https://github.com/pbrisbin/ronn/compare/ronn-optparse-applicative-v1.0.1.0...main)+## [_Unreleased_](https://github.com/pbrisbin/ronn/compare/ronn-optparse-applicative-v1.0.2.1...main)++## [v1.0.2.1](https://github.com/pbrisbin/ronn/compare/ronn-optparse-applicative-v1.0.2.0...ronn-optparse-applicative-v1.0.2.1)++- Update for ronn-1.2 ## [v1.0.2.0](https://github.com/pbrisbin/ronn/compare/ronn-optparse-applicative-v1.0.1.0...ronn-optparse-applicative-v1.0.2.0)
ronn-optparse-applicative.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: ronn-optparse-applicative-version: 1.0.2.0+version: 1.0.2.1 license: AGPL-3 maintainer: Pat Brisbin homepage: https://github.com/pbrisbin/ronn#readme@@ -39,7 +39,7 @@ build-depends: base >=4.16.4.0 && <5, optparse-applicative >=0.17.1.0,- ronn >=1.1.2.0,+ ronn >=1.2.0.0, text >=1.2.5.0 if impl(ghc >=9.8)
src/Ronn/Options/Applicative.hs view
@@ -53,10 +53,10 @@ | FlagReader {} <- optMain o -> [Brackets $ optSynopsisPart o] -- optional o | otherwise -> [optSynopsisPart o] AltNode _ ts ->- [ (if nested then Parens else id) $- Concat $- intersperse " \\| " $- concatMap (go True) ts+ [ (if nested then Parens else id)+ $ Concat+ $ intersperse " \\| "+ $ concatMap (go True) ts ] BindNode t -> go True t @@ -100,11 +100,11 @@ let help = Raw (docToText $ propHelp $ optProps o) suffix =- maybe [] (pure . Parens . ("default " <>) . fromString) $- propShowDefault $- optProps o+ maybe [] (pure . Parens . ("default " <>) . fromString)+ $ propShowDefault+ $ optProps o in- Line $ help : suffix+ help : suffix cmdDefinition :: a -> Option x -> [Definition] cmdDefinition _ o = case optMain o of@@ -116,7 +116,7 @@ ( \(cmd, info) -> Definition { name = Code $ fromString cmd- , description = Line $ pure $ Raw $ docToText $ infoProgDesc info+ , description = pure $ Raw $ docToText $ infoProgDesc info , content = Nothing } )