Skip to content

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information