This commit is contained in:
Oleg Grenrus 2018-11-09 19:49:24 +02:00
parent d9dc894ca6
commit a5d3f44f2a

View file

@ -36,7 +36,7 @@
- `Servant.Client.Streaming` is *used* by CPSised - `Servant.Client.Streaming` is *used* by CPSised
`withClientM :: ClientM a -> ClientEnv -> (Either ServantError a -> IO b) -> IO b` `withClientM :: ClientM a -> ClientEnv -> (Either ServantError a -> IO b) -> IO b`
If you need to access `Stream` endpoints use `Servant.Client.Streaming` with To access `Stream` endpoints use `Servant.Client.Streaming` with
`withClientM`; otherwise you can continue using `Servant.Client` with `runClientM`. `withClientM`; otherwise you can continue using `Servant.Client` with `runClientM`.
You can use both too, `ClientEnv` and `BaseUrl` types are same for both. You can use both too, `ClientEnv` and `BaseUrl` types are same for both.
@ -44,6 +44,14 @@
Requesting ordinary `Verb` endpoints (e.g. `Get`) will block until Requesting ordinary `Verb` endpoints (e.g. `Get`) will block until
the whole response is received. the whole response is received.
There is `Servant.Client.Streaming.runClientM` function, but it has
restricted type. `NFData a` constraint prevents using it with
`SourceT`, `Conduit` etc. response types.
```haskell
runClientM :: NFData a => ClientM a -> ClientEnv -> IO (Either ServantError a)
```
This change shouldn't affect you, if you don't use streaming endpoints. This change shouldn't affect you, if you don't use streaming endpoints.
- Drop support for GHC older than 8.0 - Drop support for GHC older than 8.0
@ -62,6 +70,9 @@
### Other changes ### Other changes
- *servant-client-core* Add `NFData (GenResponse a)` and `NFData ServantError` instances.
[#1076](https://github.com/haskell-servant/servant/pull/1076)
- *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a` - *servant* Add `lookupResponseHeader :: ... => Headers headers r -> ResponseHeader h a`
[#1064](https://github.com/haskell-servant/servant/pull/1064) [#1064](https://github.com/haskell-servant/servant/pull/1064)