jsaddle-0.2.0.6: High level interface for webkit-javascriptcore

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Classes

Contents

Description

These classes are used to make various JavaScript types out of whatever we have. Functions in jsaddle take these as inputs. This alows implicit casting and eager evaluation.

Synopsis

Type classes to convert Haskell data to JavaScript

class MakeValueRef a where Source

Anything that can be used to make a JavaScript value reference

Instances

MakeValueRef JSValue Source

Makes a JavaScript value from a JSValue ADT.

MakeValueRef JSNull Source

Makes a null JavaScript value

class MakeStringRef a where Source

Anything that can be used to make a JavaScript string reference

class MakeArgRefs this where Source

Anything that can be used to make a list of JavaScript value references for use as function arguments

Methods

makeArgRefs :: this -> JSM [JSValueRef] Source

Instances

MakeArgRefs JSValue Source

Makes an argument list with just a single JavaScript value from a JSValue ADT.

MakeArgRefs JSNull Source

Makes an argument list with just a single null JavaScript value

class MakeObjectRef this where Source

Anything that can be used to make a JavaScript object reference

class MakePropRef this where Source

Anything that can be used to make a JavaScript property reference

Methods

makePropRef :: this -> JSM JSPropRef Source