Safe Haskell | None |
---|---|
Language | Haskell98 |
Module to be shared between server and client.
This module must be valid for both GHC and Fay.
- data Returns a = Returns
- call :: (Returns a -> command) -> (a -> Fay ()) -> Fay ()
- callWithErrorHandling :: (Returns a -> command) -> (a -> Fay ()) -> Fay () -> Fay ()
- ajaxCommand :: Automatic command -> (Automatic a -> Fay ()) -> Fay ()
- ajaxCommandWithErrorHandling :: Automatic command -> (Automatic a -> Fay ()) -> Fay () -> Fay ()
Documentation
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
.
Run the AJAX command.