Changes between Version 35 and Version 36 of TypeFunctionsSolving
- Timestamp:
- 08/06/08 21:37:05 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TypeFunctionsSolving
v35 v36 1 1 = Normalising and Solving Type Equalities = 2 2 3 The following is based on ideas for the new, post-ICFP'08 solving algorithm described in CVS `papers/type-synonym/new-single.tex`. Most of the code is in the module `TcTyFuns`.3 The following is based on ideas for the new, post-ICFP'08 solving algorithm described in CVS `papers/type-synonym/new-single.tex`. A revised version of `new-single.tex` that integrates the core ideas from this wiki page is in `papers/type-synonym/normalised_equations_algorithm.tex`. Most of the code is in the module `TcTyFuns`. 4 4 5 5 … … 18 18 == Overall algorithm == 19 19 20 The overall algorithmis as in `new-single.tex`, namely20 The overall structure is as in `new-single.tex`, namely 21 21 1. normalise all constraints (both locals and wanteds), 22 22 2. solve the wanteds, and 23 23 3. finalise. 24 24 However, the three phases differ in important ways. In particular, normalisation includes decompositions & the occurs check, and we don't instantiate any flexible type variables before we finalise (i.e., solving is purely local). 25 25 26 26 == Normal equalities ==
