yesod-fay-0.1.0.2: Utilities for using the Fay Haskell-to-JS compiler with Yesod.
Language.Fay.Yesod
Description
Module to be shared between server and client.
This module must be valid for both GHC and Fay.
Synopsis
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.
Returns
Constructors
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.