yesod-fay-0.1.0.1: Utilities for using the Fay Haskell-to-JS compiler with Yesod.

Safe HaskellNone

Language.Fay.Yesod

Description

Module to be shared between server and client.

This module must be valid for both GHC and Fay.

Synopsis

Documentation

data Returns a Source

A proxy type for specifying what type a command should return. The final field for each data constructor in a command datatype should be Returns.

Constructors

Returns 

Instances

call :: (Foreign a, Foreign command) => (Returns a -> command) -> (a -> Fay ()) -> Fay ()Source

Call a command.

ajaxCommand :: (Foreign a, Foreign command) => command -> (a -> Fay ()) -> Fay ()Source

Run the AJAX command.