Panic on bad newtype unpacking
This silly declaration causes a panic in isUnliftedType:
{-# LANGUAGE UnliftedNewtypes #-}
import GHC.Exts
newtype T (a :: TYPE r) = MkT {-# UNPACK #-} a
This silly declaration causes a panic in isUnliftedType:
{-# LANGUAGE UnliftedNewtypes #-}
import GHC.Exts
newtype T (a :: TYPE r) = MkT {-# UNPACK #-} a