servant/servant-client-core
Julian K. Arni 65c2cbb6a9 Fix 7.8.4 IsList Sequence issue
And other minor 7.8.4 issues.
2017-09-14 11:23:42 -04:00
..
include Rewrite servant-client. 2017-09-14 09:54:13 -04:00
src/Servant/Client Fix 7.8.4 IsList Sequence issue 2017-09-14 11:23:42 -04:00
test Move BaseUrlSpec 2017-09-14 09:54:13 -04:00
CHANGELOG.md Documentation fixes 2017-09-14 09:54:13 -04:00
LICENSE Rewrite servant-client. 2017-09-14 09:54:13 -04:00
README.md Documentation fixes 2017-09-14 09:54:13 -04:00
servant-client-core.cabal Ghc 8.2 fixes 2017-09-14 09:54:46 -04:00
Setup.hs Rewrite servant-client. 2017-09-14 09:54:13 -04:00

servant-client-core

servant

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:

  1. Define a RunClient instance for your datatype (call it MyMonad)
  2. Define a ClientLike instance. This will look like:
instance ClientLike (MyMonad a) (MyMonad a) where
  mkClient = id
  1. 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'l need to define a new HasClient instance for your combinator. There are plenty of examples to guide you in the HasClient module.