Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Servant.Client.Core.Reexport
- newtype ClientEnv = ClientEnv {}
- newtype ClientM a = ClientM {
- runClientM' :: ReaderT ClientEnv (ExceptT ClientError JSM) a
- runClientM :: ClientM a -> ClientEnv -> JSM (Either ClientError a)
- client :: HasClient ClientM api => Proxy api -> Client ClientM api
- withStreamingRequestJSM :: Request -> (StreamingResponse -> JSM a) -> ClientM a
Documentation
module Servant.Client.Core.Reexport
Instances
runClientM :: ClientM a -> ClientEnv -> JSM (Either ClientError a) Source #
withStreamingRequestJSM :: Request -> (StreamingResponse -> JSM a) -> ClientM a Source #
A variation on Servant.Client.Core.withStreamingRequest
where the continuation / callback
passed as the second argument is in the JSM monad as opposed to the IO monad.
Executes the given request and passes the response data stream to the provided continuation / callback.