You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE UnliftedNewtypes #-}
newtypeFoo=Foo (##)
fails to compile:
panic! (the 'impossible' happened)
(GHCJS version 8.10.7, GHC version 8.10.7):
genApp: invalid size
Please report this as a GHCJS bug: https://github.com/ghcjs/ghcjs/issues
The text was updated successfully, but these errors were encountered:
amesgen
changed the title
Compiler panic: genApp: invalid size when using UnlifedNewtypes
Compiler panic: genApp: invalid size when using UnliftedNewtypesJul 23, 2022
The minimal example
fails to compile:
Context
I encountered this in
GHC.Parser.Lexer
in GHC 9.4, whereParseResult
is an unlifted newtype: https://gitlab.haskell.org/ghc/ghc/-/blob/ghc-9.4.1-rc1/compiler/GHC/Parser/Lexer.x#L2328Note that type synonyms for unlifted types work just fine:
Minimal reproducible example
https://github.com/amesgen/stuff/tree/ghcjs-unlifted
The text was updated successfully, but these errors were encountered: