@hackage servant-client-core0.17
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 (18)
- aeson >=1.4.1.0 && <1.5
- base >=4.9 && <4.14
- base-compat >=0.10.5 && <0.12
- base64-bytestring >=1.0.0.1 && <1.1
- bifunctors >=5.5.3 && <5.6
- bytestring >=0.10.8.1 && <0.11 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.