jsaddle-0.9.5.0: Interface for JavaScript that works with GHCJS and GHC

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Evaluate

Description

If you just want to run some JavaScript that you have as a string this is you can use eval or evaluateScript.

Synopsis

Documentation

eval Source #

Arguments

:: ToJSString script 
=> script

JavaScript to evaluate

-> JSM JSVal 

Evaluates a script (like eval in java script)

>>> testJSaddle $ eval "1+1"
2