logo       

newtype and existentials: msg#00029

lang.haskell.glasgow.bugs

Subject: newtype and existentials

Is there a strong reason why

> {-# OPTIONS -fglasgow-exts #-}
> data Type :: (* -> *) where
> Int :: Type Int
> data Dynamic = forall a . Dyn (a, Type a)

works, but not

> newtype Dynamic = forall a . Dyn (a, Type a)

Cheers, Ralf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise