mirror of
https://github.com/beijaflor-io/ghcjs-commonjs.git
synced 2024-10-26 19:13:10 +03:00
Update hello-world to the latest API
This commit is contained in:
parent
b0275d52c0
commit
27a52df5a7
@ -1,8 +1,8 @@
|
||||
module Main where
|
||||
|
||||
import qualified GHCJS.CommonJS as CommonJS
|
||||
import GHCJS.CommonJS (exportMain, exports)
|
||||
|
||||
main :: IO ()
|
||||
main = CommonJS.exportMain
|
||||
[ CommonJS.pack ("sayHello", putStrLn "Hello, I'm a Haskell")
|
||||
main = exportMain
|
||||
[ "sayHello" `exports` putStrLn "Hello, I'm a Haskell"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user