jsaddle-0.9.4.0: Interface for JavaScript that works with GHCJS and GHC

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Marshal.String

Contents

Description

JSStrings in JSaddle (when compiled with GHC) is not a JSVal instead it is implemented with a Text.

Synopsis

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

toJSString

Methods

toJSString :: a -> JSString Source #

class FromJSVal a => FromJSString a where Source #

Anything that can be constructed from a JavaScript string

Minimal complete definition

fromJSString

Methods

fromJSString :: JSString -> a Source #