Created
January 27, 2016 14:14
-
-
Save meditans/08771707f45dc744a5b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE OverloadedStrings #-} | |
| module Lib | |
| ( someFunc | |
| ) where | |
| import Data.JSString () | |
| import GHCJS.Types | |
| foreign import javascript unsafe "window.alert($1)" js_alert :: JSString -> IO () | |
| someFunc :: IO () | |
| someFunc = js_alert "Hello from GHCJS!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment