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 PToJSVal a where
- class PFromJSVal a where
- class ToJSVal a where
- class FromJSVal a where
- class ToJSVal a => ToJSString a where
- class FromJSVal a => FromJSString a where
- class MakeObject this where
- class MakeArgs this where
Type classes to convert Haskell data to JavaScript
class PFromJSVal a where Source #
pFromJSVal :: JSVal -> a Source #
class ToJSVal a => ToJSString a where Source #
Anything that can be used to make a JavaScript string
toJSString :: a -> JSString Source #
class FromJSVal a => FromJSString a where Source #
Anything that can be constructed from a JavaScript string
fromJSString :: JSString -> a 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 |