Fix Trac #4917: try a bit harder to unify on-the-fly
authorsimonpj@microsoft.com <unknown>
Tue, 25 Jan 2011 11:01:12 +0000 (11:01 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 25 Jan 2011 11:01:12 +0000 (11:01 +0000)
commit1add108e019be6bbdb340eea3900f7193d5daa6b
tree0f8625f44551a29b5dcb45599f914e1ff0b4c7d7
parent9e6e96bdc19d71318ac7fc2fc9381ce57a22e399
Fix Trac #4917: try a bit harder to unify on-the-fly

This is generally a modest improvement but, more important,
it fixes a "unify-under-forall" problem.  See Note [Avoid deferring].

There's still a lurking unsatisfactory-ness in that we can't
defer arbitrary constraints that are trapped under a forall.
compiler/typecheck/TcUnify.lhs