|
| <prev next> |
Re: unexpected arithmetic sequence and deriving Enum behaviour: msg#00140lang.haskell.glasgow.bugs
Simon, Laszlo presented some code: Consider the following code fragment: ... and then remarked: Notice that there is no deriving Enum (which would be an error according to the Report) You asked: Why do you say that? Can you give a pointer to the relevant text in the report? I can't see anything wrong here. I think he was referring to the fact that it is illegal to both *derive* and *define* an instance of a particular class for a type. Regards, Stefan
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: unexpected arithmetic sequence and deriving Enum behaviour, Simon Marlow |
|---|---|
| Previous by Thread: | Re: unexpected arithmetic sequence and deriving Enum behaviour, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |