Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHCJS-0.2.1.9007019 crashes with Data.Kind's Type #580

Closed
mageshb opened this issue Apr 13, 2017 · 7 comments
Closed

GHCJS-0.2.1.9007019 crashes with Data.Kind's Type #580

mageshb opened this issue Apr 13, 2017 · 7 comments

Comments

@mageshb
Copy link

mageshb commented Apr 13, 2017

With the following code,

import Data.Kind

data Bar = Bar Type Type

-- data Foo = Foo (*) (*)   -- Even this doesn't work

I'm getting this error

primTypeVt: unrecognized primitive type: ghc-prim:GHC.Prim.TYPE
CallStack (from HasCallStack):
  error, called at src/Gen2/ClosureInfo.hs:214:19 in ghcjs-0.2.1.9007019-FU0Wq6nrcW4E423MvmDWR5:Gen2.ClosureInfo
@aljce
Copy link

aljce commented May 1, 2017

Also encountered this you can make the example even smaller

import Data.Kind
data Bar = Bar Type

@andrewthad
Copy link
Contributor

I'm running into this problem as well in a project I'm working on.

@mstksg
Copy link
Contributor

mstksg commented May 18, 2017

I too am encountering this issue. Is there a version of ghcjs I can use that doesn't run into this?

@mageshb
Copy link
Author

mageshb commented May 18, 2017

It's blocker for me to compile one of my packages with ghcjs. Unfortunately I am not aware of any version that fix this problem.

@mstksg
Copy link
Contributor

mstksg commented May 20, 2017

@mageshb not sure if you are pinged by the reference, but I've managed to get a version of ghcjs (#587) that might work with this. ran a few tests and it seems to be okay, but it still hasn't been looked over by the big bosses yet.

@andrewthad
Copy link
Contributor

Is there anything blocking this from being merged into GHCJS? This would be a very helpful fix.

@hamishmack
Copy link
Member

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants