servant-js-0.9.4: Automatically derive javascript functions to query servant webservices.

Safe HaskellNone
LanguageHaskell2010

Servant.JS.Vanilla

Synopsis

Documentation

vanillaJS :: JavaScriptGenerator Source #

Generate vanilla javascript functions to make AJAX requests to your API, using XMLHttpRequest. Uses defCommonGeneratorOptions for the CommonGeneratorOptions.

vanillaJSWith :: CommonGeneratorOptions -> JavaScriptGenerator Source #

Generate vanilla javascript functions to make AJAX requests to your API, using XMLHttpRequest. Lets you specify your own options.

generateVanillaJS :: AjaxReq -> Text Source #

js codegen using XmlHttpRequest using default generation options

generateVanillaJSWith :: CommonGeneratorOptions -> AjaxReq -> Text Source #

js codegen using XmlHttpRequest