Safe Haskell | None |
---|---|
Language | Haskell2010 |
These classes are used to make various JavaScript types out of whatever we have. Functions in jsaddle take these as inputs. This alows implicit casting and eager evaluation.
- class ToJSVal a where
- class ToJSVal a => ToJSString a where
- toJSString :: a -> JSString
- class MakeObject this where
- makeObject :: this -> JSM Object
Type classes to convert Haskell data to JavaScript
Anything that can be used to make a JavaScript value reference
class ToJSVal a => ToJSString a where Source
Anything that can be used to make a JavaScript string reference
toJSString :: a -> JSString Source
class MakeObject this where Source
Anything that can be used to make a JavaScript object reference
makeObject :: this -> JSM Object Source
MakeObject Object Source | If we already have a Object we are fine |