Shpadoinkle-router-0.2.0.0: A single page application rounter for Shpadoinkle based on Servant.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Router.Client

Description

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

Documentation

runXHR :: ClientM a -> JSM a Source #

Run the ClientM from Servant as an XHR request.

runXHR' :: ClientM a -> ClientEnv -> JSM a Source #

Run the ClientM from Servant as an XHR request with a customized base URL.