@hackage servant-client-core0.12
Core functionality and class for client function generation for servant APIs
Categories
License
BSD-3-Clause
Maintainer
haskell-servant-maintainers@googlegroups.com
Links
Versions
Installation
Tested Compilers
Dependencies (16)
- base >=4.7 && <4.11
- base-compat >=0.9.1 && <0.10
- base64-bytestring >=1.0.0.1 && <1.1
- bytestring >=0.10 && <0.11
- containers >=0.5 && <0.6
- exceptions >=0.8 && <0.9 Show all…
Dependents (77)
@hackage/cicero-api, @hackage/servant-multipart-client, @hackage/httpstan, @hackage/servant-http-streams, @hackage/advent-of-code-api, @hackage/genai-lib, Show all…
servant-client-core

HTTP-client-agnostic client functions for servant APIs.
This library should mainly be of interest to backend- and combinator-writers.
For backend-writers
If you are creating a new backend, you'll need to:
- Define a
RunClientinstance for your datatype (call itMyMonad) - Define a
ClientLikeinstance. This will look like:
instance ClientLike (MyMonad a) (MyMonad a) where
mkClient = id
- Re-export the module Servant.Client.Core.Reexport so that your end-users can be blissfully unaware of 'servant-client-core', and so each backend-package comes closer to the warm hearth of the drop-in-replacement equivalence class.
For combinator-writers
You'll need to define a new HasClient instance for your combinator. There are
plenty of examples to guide you in the
HasClient module.