- 12 Nov, 2010 1 commit
-
-
simonpj@microsoft.com authored
Regression testing and user feedback for GHC 7.0 taught us a lot. This patch fixes numerous small bugs, and some major ones (eg Trac #4484, #4492), and improves type error messages. The main changes are: * Entirely remove the "skolem equivalance class" stuff; a very useful simplification * Instead, when flattening "wanted" constraints we generate unification variables (not flatten-skolems) for the flattened type function application * We then need a fixup pass at the end, TcSimplify.solveCTyFunEqs, which resolves any residual equalities of form F xi ~ alpha * When we come across a definite failure (e.g. Int ~ [a]), we now defer reporting the error until the end, in case we learn more about 'a'. That is particularly important for occurs-check errors. These are called "frozen" type errors. * Other improvements in error message generation. * Better tracing messages
-
- 01 Nov, 2010 1 commit
-
-
simonpj@microsoft.com authored
In particular, instead of Cannot match 'a' with 'b' we get Could not deduce (a~b) from context (F a ~ b) or whatever
-
- 21 Oct, 2010 1 commit
-
-
simonpj@microsoft.com authored
-
- 19 Oct, 2010 1 commit
-
-
simonpj@microsoft.com authored
A bit yukky; see Note [Runtime skolems] in TcErrors. But it works, and the debugger just is yukky in places.
-
- 18 Oct, 2010 1 commit
-
-
dimitris@microsoft.com authored
Major pass through type checker:(1) prioritizing equalities, (2) improved Derived mechanism, (3) bugfixes
-
- 08 Oct, 2010 2 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
The error cascade caused puzzling errors in T4093b, and suppressing some seems like a good plan. Very few test outputs change.
-
- 07 Oct, 2010 1 commit
-
-
simonpj@microsoft.com authored
-
- 19 Sep, 2010 1 commit
-
-
simonpj@microsoft.com authored
-
- 18 Sep, 2010 1 commit
-
-
Ian Lynagh authored
and remove the temporary DOpt class workaround.
-
- 17 Sep, 2010 4 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
Improves kind error messages in paticular
-
- 13 Sep, 2010 1 commit
-
-
simonpj@microsoft.com authored
This major patch implements the new OutsideIn constraint solving algorithm in the typecheker, following our JFP paper "Modular type inference with local assumptions". Done with major help from Dimitrios Vytiniotis and Brent Yorgey.
-