Safe Haskell | None |
---|---|
Language | Haskell2010 |
JSStrings
in JSaddle (when compiled with GHC) is not a JSVal
instead it
is implemented with a Text
.
- class ToJSVal a => ToJSString a where
- class FromJSVal a => FromJSString a where
Type class to convert Haskell to JavaScript string
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 #