[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic derivation



Date: 22 Apr 91  9:33
From: haskell-request@cs.glasgow.ac.uk
Sender: Philip Wadler <wadler@cs.glasgow.ac.uk>
To: cvh@cs.glasgow.ac.uk, haskell@cs.glasgow.ac.uk, kh@cs.glasgow.ac.uk
Subject: Re:  Automatic derivation

X-Comment1: #############################################################
X-Comment2: #     uk.ac.glasgow.cs has changed to uk.ac.glasgow.dcs     #
X-Comment3: #     If this address does not work please ask your mail    #
X-Comment4: #     administrator to update your NRS & mailer tables.     #
X-Comment5: #############################################################

| > What happens if you write
| > 
| > data T1 = C1 deriving Ix
| 
| I would say that *if* the required instances aren't explicitly provided
| by instance declarations, then this should be an error.  It's confusing
| to sometimes derive instances, sometimes not.

I agree with Kevin.  -- P