jsaddle-0.9.7.1: 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

Methods

toJSString :: a -> JSString Source #

Instances
ToJSString Text Source # 
Instance details

Defined in Language.Javascript.JSaddle.Value

ToJSString String Source # 
Instance details

Defined in Language.Javascript.JSaddle.Value

ToJSString JSString Source #

If we already have a JSString we are fine

Instance details

Defined in Language.Javascript.JSaddle.Value

class FromJSVal a => FromJSString a where Source #

Anything that can be constructed from a JavaScript string

Methods

fromJSString :: JSString -> a Source #