ronn-opt-env-conf 1.0.1.0 → 1.0.1.1
raw patch · 4 files changed
+26/−23 lines, 4 filesdep ~ronnPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ronn
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−2
- ronn-opt-env-conf.cabal +2/−2
- src/Ronn/OptEnvConf/Env.hs +7/−7
- src/Ronn/OptEnvConf/Opt.hs +11/−12
CHANGELOG.md view
@@ -1,6 +1,10 @@-## [_Unreleased_](https://github.com/pbrisbin/ronn/compare/ronn-opt-env-conf-v1.0.1.0...main)+## [_Unreleased_](https://github.com/pbrisbin/ronn/compare/ronn-opt-env-conf-v1.0.1.1...main) -## [v1.0.1.0](https://github.com/pbrisbin/ronn/tree/ronn-opt-env-conf-v1.0.1.0)+## [v1.0.1.1](https://github.com/pbrisbin/ronn/compare/ronn-opt-env-conf-v1.0.1.0...ronn-opt-env-conf-v1.0.1.1)++- Update for ronn-1.2++## [v1.0.1.0](https://github.com/pbrisbin/ronn/compare/ronn-opt-env-conf-v1.0.0.0...ronn-opt-env-conf-v1.0.1.0) - Add `HasSections` instance
ronn-opt-env-conf.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: ronn-opt-env-conf-version: 1.0.1.0+version: 1.0.1.1 license: AGPL-3 maintainer: Pat Brisbin homepage: https://github.com/pbrisbin/ronn#readme@@ -43,7 +43,7 @@ build-depends: base >=4.16.4.0 && <5, opt-env-conf,- ronn >=1.1.1.0,+ ronn >=1.2.0.0, text >=1.2.5.0 if impl(ghc >=9.8)
src/Ronn/OptEnvConf/Env.hs view
@@ -33,17 +33,17 @@ envDocDefinition doc = Definition { name- , description = Line $ maybe [] (pure . fromString) $ envDocHelp doc+ , description = maybe [] (pure . fromString) $ envDocHelp doc , content = Nothing } where name =- Concat $- addArgument $- intersperse "|" $- map (Code . fromString) $- toList $- envDocVars doc+ Concat+ $ addArgument+ $ intersperse "|"+ $ map (Code . fromString)+ $ toList+ $ envDocVars doc addArgument = case envDocMetavar doc of Nothing -> id
src/Ronn/OptEnvConf/Opt.hs view
@@ -32,10 +32,10 @@ AnyDocsAnd ds -> concatMap (go True) ds AnyDocsOr [AnyDocsSingle (Just d)] -> [Brackets $ optDocPart d] -- optional d AnyDocsOr ds ->- [ (if nested then Parens else id) $- Concat $- intersperse " \\| " $- concatMap (go True) ds+ [ (if nested then Parens else id)+ $ Concat+ $ intersperse " \\| "+ $ concatMap (go True) ds ] AnyDocsSingle Nothing -> [] AnyDocsSingle (Just d) -> [optDocPart d]@@ -50,9 +50,9 @@ Nothing -> Variable $ fromString mv Just {} -> Brackets $ fromString mv | otherwise =- Concat $- intersperse "\\|" $- optDashedParts doc+ Concat+ $ intersperse "\\|"+ $ optDashedParts doc bracketize = case optDocDefault doc of Nothing -> id@@ -74,11 +74,10 @@ Definition { name , description =- Line $- concat- [ maybe [] (pure . fromString) $ optDocHelp doc- , maybe [] (\d -> pure $ Parens $ "default " <> fromString d) $ optDocDefault doc- ]+ concat+ [ maybe [] (pure . fromString) $ optDocHelp doc+ , maybe [] (\d -> pure $ Parens $ "default " <> fromString d) $ optDocDefault doc+ ] , content = Nothing } where