Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type JSVal = ForeignPtr OpaqueJSValue
- type MutableJSArray = JSValueRefRef
- newtype Object = Object (ForeignPtr OpaqueJSValue)
- type JSPropertyNameArray = JSPropertyNameArrayRef
- type JSPropertyAttributes = CUInt
- type JSContextRef = Ptr OpaqueJSContext
- type JSString = ForeignPtr OpaqueJSString
- type Index = CUInt
- newtype Nullable a = Nullable a
- type JSM = ReaderT JSContextRef IO
Documentation
type JSVal = ForeignPtr OpaqueJSValue Source
type MutableJSArray = JSValueRefRef Source
type JSPropertyAttributes = CUInt
type JSContextRef = Ptr OpaqueJSContext
type JSString = ForeignPtr OpaqueJSString Source
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