|
Re: Weird Undecidable Instances Bug: msg#00027lang.haskell.glasgow.bugs
On Monday, Sep 8, 2003, at 03:53 US/Pacific, Simon Peyton-Jones wrote: Consider an instance decl like: Could you give me an example of a goal you had in mind, where this method fails? I tried (Lte a b l,If l b a c) |- (Max a b c) but the method works on this. This reminds me of Prolog, somewhat. I wonder if it would be worth prototyping confluent solvers in Prolog? I might try this actually, as a way of getting a handle on the problem. I'd be especially interested in any "tricky examples" you may have. On the other hand, does the solver have to be confluent? What if it spawned off different "threads", and gave up after doing a certain amount of "work", which the user could set (like -fcontext-stack)? Provided the "solver thread" scheduling is deterministic, I imagine that every correct program would be solvable in a finite amount of work. I guess one possibility might be to make such an instance decl illegal. Nooo!!! My workaround was simply to put the instance declaration in a later module. Then "g" type-checks fine. -- Ashley Yakeley, Seattle WA
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-802692 ] SIGSEGV in Text.Regex, SourceForge.net |
|---|---|
| Next by Date: | Re: Weird Undecidable Instances Bug, Martin Sulzmann |
| Previous by Thread: | RE: Weird Undecidable Instances Bug, Simon Peyton-Jones |
| Next by Thread: | Re: Weird Undecidable Instances Bug, Martin Sulzmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |