fay-dom-0.5.0.1: DOM FFI wrapper library for Fay

Safe HaskellNone
LanguageHaskell98

DOM

Description

Document object model functions. Most of this doesn't have anything to do with the DOM and is actually ECMA library stuff, but I'll leave it in for now.

Synopsis

Documentation

addEvent :: Text -> Fay f -> Fay () Source

removeEvent :: Element -> Text -> (Event -> Fay f) -> Fay () Source

logS :: Text -> Fay () Source

logF :: f -> Fay () Source

setInterval :: Double -> (Timer -> Fay ()) -> Fay Timer Source

setInterval except the calling function gets the timer as an | argument so the interval can be cancelled from within it.

setTimeout :: Double -> (Timer -> Fay ()) -> Fay Timer Source

setTimeout except the calling function gets the timer as an | argument. Primarily for symmetry with setInterval.

data RequestMethod Source

Constructors

GET 
POST 
PUT 
HEAD