|
RE: type class problem / GHC bug: msg#00016lang.haskell.glasgow.bugs
A bug thank you; now fixed. Please send bug reports about GHC to glasgow-haskell-bugs@xxxxxxxxxxx, not to the Haskell mailing list. Simon | -----Original Message----- | From: haskell-bounces@xxxxxxxxxxx [mailto:haskell-bounces@xxxxxxxxxxx] On Behalf Of Brandon | Michael Moore | Sent: 08 November 2003 13:20 | To: haskell@xxxxxxxxxxx | Subject: type class problem / GHC bug | | Hi everyone | | I've built GHC from CVS and I'm getting some odd errors about overlapping | instances. This is different from 6.0.1, but it's not obvious it is wrong, | so I'm probably missing something here. | | The example is | | class A x | class (A x) => B x | instance A x | instance B x | | The new GHC complains that the second instance overlapps with the first. | Maybe because of the context on B x the instance for B x is interpreted as | a claim we have A x too, but shouldn't it be the other way, that you need | an instance A x from somewhere along with an instance for B x? | | Thanks | | Brandon | | _______________________________________________ | Haskell mailing list | Haskell@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/haskell
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: eval_thunk_selector: strange selectee 29, Simon Marlow |
|---|---|
| Next by Date: | RE: type class problem / GHC bug, Simon Peyton-Jones |
| Previous by Thread: | eval_thunk_selector: strange selectee 29, Yitzchak Gale |
| Next by Thread: | RE: type class problem / GHC bug, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |