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

Safe HaskellNone

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

logF :: f -> Fay ()Source

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

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 TimerSource

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

data RequestMethod Source

Constructors

GET 
POST 
PUT 
HEAD