deriving (was Re: storing to a file)

Hal Daume III hdaume@ISI.EDU
Thu, 14 Nov 2002 15:11:44 -0800 (PST)


> Actually, there's one situation where it would work easily, and that
> is when used with newtype.  Apart from "Show" and "Read", which are
> special cases anyway, the "deriving" operation on newtype has a simple
> meaning: inherit instances from the type being wrapped.

GHC does this on newtypes already.