DOM-2.0.0.1: DOM Level 2 bindings for the WebBits package.

Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com

Data.DOM.WBTypes

Description

Minimal glue for WebBits and DOM

Synopsis

Documentation

castExpr :: b -> Expression a -> Expression bSource

Cast a WebBits Javascript expression to the given type. Type is represented by a value of the desired type (ofter undefined).

exprType :: Expression a -> aSource

Extract a type from an expression.

(/\) :: Expression a -> b -> Expression bSource

An infix version of castExpr provided for convenience.

setjsProperty :: Monad m => String -> Expression a -> Expression this -> m (Expression this)Source

A helper function to encode a property setter. This function is mostly called from converted IDL files for DOM interfaces.