conferer-warp 1.0.0.0 → 1.1.0.0
raw patch · 3 files changed
+15/−8 lines, 3 filesdep ~confererdep ~warpPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: conferer, warp
API changes (from Hackage documentation)
Files
- CHANGELOG.md +8/−1
- conferer-warp.cabal +4/−4
- src/Conferer/FromConfig/Warp.hs +3/−3
CHANGELOG.md view
@@ -8,9 +8,16 @@ Nothing +## [v1.1.0.0] 2021-03-07++### Changed++* Update lib to match `conferer`+ ## [v1.0.0.0] 2020-12-29 First release -[Unreleased]: https://github.com/ludat/conferer/compare/conferer-warp_v1.0.0.0...HEAD+[Unreleased]: https://github.com/ludat/conferer/compare/conferer-warp_v1.1.0.0...HEAD+[v1.1.0.0]: https://github.com/ludat/conferer/compare/conferer-warp_v1.0.0.0...conferer-warp_v1.1.0.0 [v1.0.0.0]: https://github.com/ludat/conferer/compare/v0.0.0.0...conferer-warp_v1.0.0.0
conferer-warp.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: c41ddb23f10259b3f8eaf3b77d7fa02bfa24656e72bc0f3fe30b84b8b28e1c76+-- hash: 21314119d545698e73045b9f644de204e6e5317eb0b304f7e988612bb7bdcff0 name: conferer-warp-version: 1.0.0.0+version: 1.1.0.0 synopsis: conferer's FromConfig instances for warp settings description: Library to abstract the parsing of many haskell config values from different config sources@@ -35,7 +35,7 @@ ghc-options: -Wall -Wredundant-constraints -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns build-depends: base >=4.3 && <5- , conferer >=1.0.0.0 && <2.0.0.0+ , conferer >=1.1.0.0 && <2.0.0.0 , http-types >=0.8.6 && <0.13 , text >=1.1 && <1.3 , wai >=3.0 && <4.0@@ -56,7 +56,7 @@ ghc-options: -Wall -Wredundant-constraints -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns build-depends: base >=4.3 && <5- , conferer >=1.0.0.0 && <2.0.0.0+ , conferer >=1.1.0.0 && <2.0.0.0 , conferer-warp , hspec , http-types >=0.8.6 && <0.13
src/Conferer/FromConfig/Warp.hs view
@@ -20,10 +20,10 @@ import Network.Wai.Handler.Warp.Internal instance FromConfig HostPreference where- fetchFromConfig = fetchFromConfigByIsString+ fromConfig = fetchFromConfigByIsString instance FromConfig ProxyProtocol where- fetchFromConfig = fetchFromConfigWith $+ fromConfig = fetchFromConfigWith $ (\case "proxyprotocolnone" -> Just ProxyProtocolNone "none" -> Just ProxyProtocolNone@@ -102,7 +102,7 @@ newtype ForkSettings = ForkSettings (((forall a. IO a -> IO a) -> IO ()) -> IO ()) instance FromConfig Settings where- fetchFromConfig key originalConfig = do+ fromConfig key originalConfig = do config <- addDefaultsAfterDeconstructingToDefaults deconstructSettingsToDefaults key originalConfig settingsPort <- fetchFromConfig (key /. "port") config settingsHost <- fetchFromConfig (key /. "host") config