From 507263e7e8b999cf3ba77ecb5ae54eada2a67ab1 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Tue, 12 Jun 2018 22:05:06 +0300 Subject: [PATCH] Add migration guide for hoistClientMonad --- servant/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servant/CHANGELOG.md b/servant/CHANGELOG.md index a9fbfc2d..e5b58345 100644 --- a/servant/CHANGELOG.md +++ b/servant/CHANGELOG.md @@ -41,6 +41,14 @@ Read [tutorial section for more information](https://haskell-servant.readthedocs.io/en/release-0.14/tutorial/Client.html#changing-the-monad-the-client-functions-live-in). ([#936](https://github.com/haskell-servant/servant/pull/936)) + iF you have own combinators, you'll need to define a new method of + `HasClient` class, for example: + + ```haskell + type Client m (MyCombinator :> api) = MyValue :> Client m api + hoistClientMonad pm _ nt cl = hoistClientMonad pm (Proxy :: Proxy api) nt . cl + ``` + - *servant* Add `safeLink' :: (Link -> a) -> ... -> MkLink endpoint a`, which allows to create helpers returning something else than `Link`. ([#968](https://github.com/haskell-servant/servant/pull/968))