blob: 6c0737047f19ee01d97b913018c599a76849b504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
module JavaScript (
module JavaScript.Event,
module JavaScript.Element,
module JavaScript.Window,
toJSVal,
consoleLog,
consoleLogVal,
) where
import JavaScript.Element
import JavaScript.Event
import JavaScript.Val
import JavaScript.Window
consoleLog :: String -> IO ()
consoleLog = js_consoleLog . toJSString
foreign import javascript unsafe "console.log($1)"
js_consoleLog :: JSString -> IO ()
foreign import javascript unsafe "console.log($1)"
consoleLogVal :: JSVal -> IO ()
|