Portability | portable |
---|---|
Stability | experimental |
Maintainer | golubovsky@gmail.com |
Minimal glue for WebBits and DOM
- castExpr :: b -> Expression a -> Expression b
- exprType :: Expression a -> a
- (/\) :: Expression a -> b -> Expression b
- setjsProperty :: Monad m => String -> Expression a -> Expression this -> m (Expression this)
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.