|
Re: newtype and existentials: msg#00034lang.haskell.glasgow.bugs
On Fri, Nov 18, 2005 at 01:31:46PM -0000, Simon Peyton-Jones wrote: > 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. > > In concrete terms, the newtype constructor is discarded before we get to > System F; but we can't do that with an existential. The first argument, but not the second, also applies to newtype T = MkT (forall a. S)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: newtype and existentials, Simon Peyton-Jones |
|---|---|
| Next by Date: | RE: newtype and existentials, Simon Peyton-Jones |
| Previous by Thread: | Re: newtype and existentials, Ralf Hinze |
| Next by Thread: | RE: newtype and existentials, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |