module Main where

import qualified GHCJS.CommonJS as CommonJS

main :: IO ()
main = CommonJS.exportMain
    [ CommonJS.pack ("sayHello", putStrLn "Hello, I'm a Haskell")
    ]

module Main where

import           GHCJS.CommonJS (exportMain, exports)

main :: IO ()
main = exportMain
    [ "sayHello" `exports` putStrLn "Hello, I'm a Haskell"
    ]

Update hello-world to the latest API
Update hello-world to the latest API
