RE: Overlapping, undecidable, incoherent -- or worse?

| > I agree, I have made it not terminate myself with | > undecidable-instances, | > I also think prolog style backtacking would be a good idea... | | For what it's worth, I'll AOL this ("me too"). I know that for the | area of Haskell I'm exploring (integrating it with OO languages), | putting backtracking into the type system would instantly enable us | solve some significant problems. I'll bear this in mind. I think the main implementation difficulty concerns functional dependencies: when backtracking out one will have to undo any unifications triggered by functional dependencies. Nothing difficult in principle, but the constraint solver is one of the more delicate parts of GHC because GHC's constraint language has become so complex. Simon

On Fri, May 21, 2004 at 11:04:53AM +0100, Simon Peyton-Jones wrote:
Nothing difficult in principle, but the constraint solver is one of the more delicate parts of GHC because GHC's constraint language has become so complex.
Well, as my day job is working for a constraints lab, I feel it's my bounded duty to say, "all the better": more cross-disciplinary synergy. ;-) For my part I must admit the current restrictions aren't _that_ irksome: they're just the sort of thing I run into every so often, have to remind myself they're the way they are, and end up writing a few more instance declarations by hand than I initially imagined I 'ought' to have to. On the point of complexity: it's not immediately obvious to me that (setting aside the Hugs-style extension to H98 in the form of the instance decls.) it would cause any blowup here in principle. Granted there's a combinatorial issue, but the breadth and depth of alternatives are necessarily finite, so it seems finitely bound overall, and since HM typing is D-Exp anyway, I'd be surprised if it made it worse than that in toto. Hideousness of implementation's another matter, and certainly I don't want to be biting the hand that feeds... Cheers, Alex.
participants (2)
-
Alex Ferguson
-
Simon Peyton-Jones