hasql-optparse-applicative 0.7 → 0.7.1
raw patch · 2 files changed
+10/−2 lines, 2 filesdep ~hasql-poolPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hasql-pool
API changes (from Hackage documentation)
Files
hasql-optparse-applicative.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: hasql-optparse-applicative-version: 0.7+version: 0.7.1 synopsis: "optparse-applicative" parsers for "hasql" category: Hasql, Database, PostgreSQL, Options homepage: https://github.com/sannsyn/hasql-optparse-applicative @@ -65,5 +65,5 @@ , attoparsec-time >=1.0.3 && <1.1 , base >=4.11 && <5 , hasql >=1.6 && <1.7- , hasql-pool >=0.9 && <0.10+ , hasql-pool >=0.10 && <0.11 , optparse-applicative >=0.17 && <0.18
library/Hasql/OptparseApplicative.hs view
@@ -22,6 +22,7 @@ <$> size <*> acquisitionTimeout <*> connectionLifetime+ <*> connectionIdleTime <*> connectionSettings updatedName where size =@@ -44,6 +45,13 @@ value (fromIntegral (24 * 60 * 60)), showDefault, help "Maximal lifetime for connections. Allows to periodically clean up the connection resources to avoid server-side leaks"+ ]+ connectionIdleTime =+ attoparsedOption C.diffTime . mconcat $+ [ long (updatedName "pool-connection-idle-time"),+ value (fromIntegral (5 * 60)),+ showDefault,+ help "Maximal connection idle time" ] -- | Given a function, which updates the long names produces a parser