Ticket #7488 (closed bug: fixed)
Promotion of newtypes
Description
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE GADTs #-}
newtype A = A Int
data B (x :: A)
The program above raises the error: A of kind * is not promotable. The program compiles fine if we declare A using data instead of newtype. Is there a good reason to prevent promotion of newtypes?
Change History
Note: See
TracTickets for help on using
tickets.
