newtype and existentials

Ralf Hinze ralf at informatik.uni-bonn.de
Fri Nov 18 08:28:28 EST 2005


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



More information about the Glasgow-haskell-bugs mailing list