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

Portabilityportable
Stabilityexperimental
Maintainergolubovsky@gmail.com

Data.DOM.WBTypes

Description

Minimal glue for BrownPLT and DOM

Synopsis

Documentation

castExpr :: Functor x => b -> x a -> x bSource

Cast a BrownPLT 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.

(/\) :: Functor x => x a -> b -> x 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.