RE: [Haskell] Classic vs. Cunning Newtype Derivation

2005-03-08 Thread Simon Peyton-Jones
[redirecting to GHC users list] John is right. I've added something to the user manual to say so. | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Meacham | Sent: 08 March 2005 00:20 | To: haskell@haskell.org | Subject: Re: [Haskell] Classic vs

[Haskell] Classic vs. Cunning Newtype Derivation

2005-03-07 Thread Ashley Yakeley
I make quite a lot of use of cunning newtype deriviation (in GHC), because it's easy to understand. newtype Mytype = MkMytype T deriving C However, if I use one of the standard derivable classes (Eq, Ord, Enum, Bounded, Show, and Read), I believe that form of deriving takes priority. AFAICT

Re: [Haskell] Classic vs. Cunning Newtype Derivation

2005-03-07 Thread John Meacham
On Mon, Mar 07, 2005 at 04:06:44PM -0800, Ashley Yakeley wrote: I make quite a lot of use of cunning newtype deriviation (in GHC), because it's easy to understand. newtype Mytype = MkMytype T deriving C However, if I use one of the standard derivable classes (Eq, Ord, Enum, Bounded,