Gather constraints in program order
authorsimonpj@microsoft.com <unknown>
Fri, 24 Nov 2006 08:40:11 +0000 (08:40 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 24 Nov 2006 08:40:11 +0000 (08:40 +0000)
commitecd655aaaa4ae495933415ad1ff6f6132ff3967f
treeae872cd63f12eff493da8053ab25ddab75728185
parenta3a15a646977ab98f9150bb2b926d960796077e4
Gather constraints in program order

Provoked by a suggestion of Simon's, this patch makes a half-hearted attempt
to gather constraints in program order, so that we tend to report an error
at its first occurrence, rather than its last.  Examples:
mdofail001, tcfail015

It's "half-hearted" because generally-speaking the typechecker does not
guaranteed to keep constraints in order; it treats them as a set.  Nevertheless
this very small change seems to improve matters, so it seems a good one.
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcSimplify.lhs