-
-
Save isomorphism/10686893 to your computer and use it in GitHub Desktop.
ghcjs newtype bug
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
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