Portability | portable |
---|---|

Stability | experimental |

Maintainer | golubovsky@gmail.com |

Minimal glue for BrownPLT and DOM

- castExpr :: Functor x => b -> x a -> x b
- exprType :: Expression a -> a
- (/\) :: Functor x => x a -> b -> x b
- setjsProperty :: Monad m => String -> Expression a -> Expression this -> m (Expression this)

# 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.

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.