Created
January 26, 2016 14:31
-
-
Save fgaz/ccf17d4ae472e439080a to your computer and use it in GitHub Desktop.
Hello, GHCJS!
This file contains 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
import GHCJS.DOM (webViewGetDomDocument, runWebGUI) | |
import GHCJS.DOM.Document (getBody) | |
import GHCJS.DOM.Element (setInnerHTML) | |
main :: IO () | |
main = runWebGUI $ \ webView -> do | |
Just doc <- webViewGetDomDocument webView | |
Just body <- getBody doc | |
setInnerHTML body (Just "<h1>Hello, GHCJS!</h1>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment