|
Re: newtype and existentials: msg#00032lang.haskell.glasgow.bugs
> yes. a newtype declares a new type isomorphic to an existing type. > newtype T = MkT S > declares T to be isomorphic to S. > > There is no existing Haskell type isomorphic to your Dynamic. Following your reasoning, shouldn't GHC also reject > newtype D = D (D -> D) because there is no existing Haskell type isomorphic to D? And certainly, System F doesn't have recursive types either. Cheers, Ralf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: newtype and existentials, Tomasz Zielonka |
|---|---|
| Next by Date: | RE: newtype and existentials, Simon Peyton-Jones |
| Previous by Thread: | RE: newtype and existentials, Simon Peyton-Jones |
| Next by Thread: | Re: newtype and existentials, Ross Paterson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |