Skip to content

Instantly share code, notes, and snippets.

@isomorphism
Created April 20, 2014 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isomorphism/11126361 to your computer and use it in GitHub Desktop.
Save isomorphism/11126361 to your computer and use it in GitHub Desktop.
ghcjs issue
module Main where
import GHCJS.DOM
import GHCJS.DOM.Types
import GHCJS.DOM.Document
import GHCJS.DOM.EventM
main = do
Just doc <- currentDocument
connect "keydown" doc $ do
return () :: EventM KeyboardEvent Document ()
return ()
{-
generating native
[1 of 1] Compiling Main ( Main.hs, Main.o )
generating JavaScript
[1 of 1] Compiling Main ( Main.hs, Main.js_o )
Linking Main.jsexe (Main)
Objectable get StaticVal: invalid tag 0
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment