Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helper for querying the server from client side code, using a derived client. This module exists to save you from having to use CPP yourself.
Synopsis
- runXHR :: MonadIO m => MonadThrow m => (JSM a -> m a) -> ClientM a -> m a
- module Servant.Client
Documentation
runXHR :: MonadIO m => MonadThrow m => (JSM a -> m a) -> ClientM a -> m a Source #
Run the ClientM from Servant as an XHR request. Raises an exception if evalued with GHC.
module Servant.Client