@hackage servant-client-core0.20.3.0
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 (19)
- aeson >=1.4.1.0 && <3
- attoparsec >=0.13.2.2 && <0.15
- base >=4.16.4.0 && <4.22
- base-compat >=0.10.5 && <0.15
- base64-bytestring >=1.0.0.1 && <1.3
- bytestring >=0.11 && <0.13 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.