Skip to content

Instantly share code, notes, and snippets.

@isomorphism
Created April 14, 2014 22:21
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/10686893 to your computer and use it in GitHub Desktop.
Save isomorphism/10686893 to your computer and use it in GitHub Desktop.
ghcjs newtype bug
module A where
import GHCJS.Types
newtype Foo = Foo (JSRef ())
foreign import javascript unsafe "" foo :: IO Foo
{- Output:
cam@zodiark:~/Progging/ghcjs-etc/bugtesting/newtype-bug$ ghcjs A.hs
generating native
[1 of 1] Compiling A ( A.hs, A.o )
ghcjsNativeDsForeigns: tcSig unexpected TyCon: A.Foo
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment