Safe Haskell | None |
---|
Module to be shared between server and client.
This module must be valid for both GHC and Fay.
- type Text = Text
- fromString :: String -> Text
- toString :: Text -> String
- 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
fromString :: String -> TextSource
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.