haskell-servant / haskell-servant/servant

tutorial: include example on how to use hoisted client functions

Open
#1,329 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2k
Forks
427
Avg merge
2d 23h
Merged PRs (30d)
5

Description

The [tutorial for Servant.Client](https://docs.servant.dev/en/stable/tutorial/Client.html) includes an example for using `hoidstClient` to move a client function into another monad.
But this example seems incomplete, as it only defines the `getClients` function without showing how to actually use it.
#1019 indicates that functions can be similarly pattern matched as already done with `client`. But then the problem arises how to pass in arguments like `clientEnv` in the tutorial.

So does the example from the tutorial make sense in the first place, and how shall it be used?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.