jsaddle-0.3.0.3: High level interface for webkit-javascriptcore

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Types

Description

 

Synopsis

Documentation

newtype Object Source

Instances

MakeObject Object Source

If we already have a Object we are fine

ToJSVal Object Source 

newtype Nullable a Source

Constructors

Nullable a 

type JSM = ReaderT JSContextRef IO Source

The JSM monad keeps track of the JavaScript context.

Given a JSM function and a JSContextRef you can run the function like this...

runReaderT jsmFunction javaScriptContext

For an example of how to set up WebKitGTK+ see tests/TestJSaddle.hs