Stability | experimental |
---|---|
Maintainer | Joel Bjornson joel.bjornson@gmail.com Niklas Broberg nibro@cs.chalmers.se |
- type HJScript = XMLGenT HJScript'
- type HJScript' = StateT HJState (Writer (Block ()))
- class IsHJScript a where
- toHJScript :: a -> HJScript ()
- evalHJScript :: HJScript t -> (t, Block ())
- runHJScript :: HJScript t -> HJState -> (t, HJState, Block ())
- outputBlock :: Block () -> HJScript ()
- outputStmt :: Stmt () -> HJScript ()
- newVarName :: HJScript String
- newVarNum :: HJScript Int
- hjsInside :: HJScript t -> HJScript (t, Block ())
- module HJScript.Lang
- module HJScript.XMLGenerator
- module HJScript.Events
- module HJScript.Ajax
- module HJScript.Objects.Array
- module HJScript.Objects.Boolean
- module HJScript.Objects.Date
- module HJScript.Objects.Math
- module HJScript.Objects.Object
- module HJScript.Objects.RegExp
- module HJScript.Objects.String
Data types and classes
class IsHJScript a whereSource
IsHJscript class with function toHJScript for converting instances to HJScript ()
toHJScript :: a -> HJScript ()Source
IsHJScript (Exp t) | |
IsHJScript (Stmt ()) | |
IsHJScript (Block ()) | |
IsHJScript (HJScript t) |
Functions
evalHJScript :: HJScript t -> (t, Block ())Source
Evaluate a script returning a tuple of the produced value and a block of code.
runHJScript :: HJScript t -> HJState -> (t, HJState, Block ())Source
Runs a script returning the value, the new state and the block of code.
module HJScript.Lang
module HJScript.XMLGenerator
module HJScript.Events
module HJScript.Ajax
module HJScript.Objects.Array
module HJScript.Objects.Boolean
module HJScript.Objects.Date
module HJScript.Objects.Math
module HJScript.Objects.Object
module HJScript.Objects.RegExp
module HJScript.Objects.String