jsc-0.1.1.0: High level interface for webkit-javascriptcore

Safe HaskellNone

Language.Javascript.JSC.String

Contents

Description

JavaScript string conversion functions

Synopsis

Documentation

class MakeStringRef a whereSource

Anything that can be used to make a JavaScript string reference

Instances

MakeStringRef String 
MakeStringRef Text 
MakeStringRef JSStringRef

If we already have a JSStringRef we are fine

Data.Text helpers

strToText :: MonadIO m => JSStringRef -> m TextSource

Convert a JavaScript string to a Haskell Text

textToStr :: Text -> JSStringRefSource

Convert a Haskell Text to a JavaScript string