http-client-effectful 1.0.0 → 1.0.1
raw patch · 4 files changed
+19/−10 lines, 4 filesdep ~effectfulsetup-changedPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: effectful
API changes (from Hackage documentation)
+ Effectful.HttpClient: tlsManagerSettings :: ManagerSettings
Files
- CHANGELOG.md +10/−0
- Setup.hs +0/−2
- http-client-effectful.cabal +3/−3
- src/Effectful/HttpClient.hs +6/−5
CHANGELOG.md view
@@ -5,6 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/). +## [1.0.1] - 2026-11-27++### Fixed++- `runHttpClientTls` sends HTTPS requests.++### Added++- Re-export `tlsManagerSettings`, for use with `runHttpClientTlsWith`.+ ## [1.0.0] - 2026-07-06 ### Added
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
http-client-effectful.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: http-client-effectful-version: 1.0.0+version: 1.0.1 synopsis: Effectful bindings for the http-client library description: Adaptation of the @<https://hackage.haskell.org/package/http-client http-client>@ library for the @<https://hackage.haskell.org/package/effectful effectful>@ ecosystem.@@ -13,7 +13,7 @@ bug-reports: https://issues.digital-autonomy.institute category: Network build-type: Simple-extra-source-files:+extra-doc-files: CHANGELOG.md common common@@ -48,7 +48,7 @@ build-depends: base >=4.10 && <5, bytestring >=0.12 && <0.13,- effectful >=2.6 && <2.7,+ effectful >=2.6 && <2.8, http-client >=0.7 && <0.8, http-client-tls >=0.3 && <0.4,
src/Effectful/HttpClient.hs view
@@ -15,7 +15,7 @@ -- 'runHttpClient' or 'runHttpClientTls' creates the 'Manager' once, -- and every request you make within that scope implicitly reuses it. ----- = Example Usage+-- = Example usage -- -- === Making a GET request --@@ -101,6 +101,7 @@ -- ** Connection manager settings , ManagerSettings , defaultManagerSettings+ , tlsManagerSettings , managerConnCount , managerResponseTimeout , managerIdleConnectionCount@@ -151,7 +152,7 @@ , withResponseHistory ) import Network.HTTP.Client qualified as Client-import Network.HTTP.Client.TLS (newTlsManagerWith)+import Network.HTTP.Client.TLS (newTlsManagerWith, tlsManagerSettings) import Prelude data HttpClient :: Effect@@ -170,15 +171,15 @@ runHttpClient :: (IOE :> es) => Eff (HttpClient ': es) a -> Eff es a runHttpClient = runHttpClientWith defaultManagerSettings --- | HTTP and HTTPS.+-- | HTTP and HTTPS, if the settings are derived from 'tlsManagerSettings'. runHttpClientTlsWith :: (IOE :> es) => ManagerSettings -> Eff (HttpClient ': es) a -> Eff es a runHttpClientTlsWith settings eff = do manager <- liftIO $ newTlsManagerWith settings evalStaticRep (HttpClient manager) eff --- | Call 'runHttpClientTlsWith' with 'defaultManagerSettings'.+-- | Call 'runHttpClientTlsWith' with 'tlsManagerSettings'. runHttpClientTls :: (IOE :> es) => Eff (HttpClient ': es) a -> Eff es a-runHttpClientTls = runHttpClientTlsWith defaultManagerSettings+runHttpClientTls = runHttpClientTlsWith tlsManagerSettings -- | Internal escape hatch granting raw access to the underlying 'Manager'. -- We do not export it: keeping the 'Manager' opaque is the whole point of this effect.