Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Javascript.JSaddle.Marshal.String
Description
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
Minimal complete definition
Methods
toJSString :: a -> JSString Source #
class FromJSVal a => FromJSString a where Source #
Anything that can be constructed from a JavaScript string
Minimal complete definition
Methods
fromJSString :: JSString -> a Source #