Panic with unboxed integers and ghci
Attempting to load the following file in ghci causes a panic in getIdFromTrivialExpr. Tested in GHC 8.0.1 and HEAD.
{-# LANGUAGE ExplicitForAll, MagicHash, KindSignatures #-}
import GHC.Types (RuntimeRep(..), TYPE)
f :: forall (x :: TYPE 'IntRep). x -> x
f x = x
g = ()
where h = f 0#
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |