Update hello-world to the latest API

This commit is contained in:
yamadapc 2016-06-20 14:53:13 -03:00
parent b0275d52c0
commit 27a52df5a7

View File

@ -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"
]