Overhaul of the rewrite rules
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Sat, 15 Sep 2007 07:41:19 +0000 (07:41 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Sat, 15 Sep 2007 07:41:19 +0000 (07:41 +0000)
commit6d2b0ae3ae3296cb6cdd496cbf85b897c7ce150b
treec25c028e56c97bd9305cdc0291cff3959960c755
parentbbd67a5f4f3515ea5c37711815b2f6ad58cbd655
Overhaul of the rewrite rules
- Cleaned up and simplified rules
- Added many missing cases
- The rules OccursCheck and swap have been eliminated and integrate with
  the other rules; ie, Subst and Unify perform the occurs check themselves
  and they can deal with left-to-right and right-to-left oriented rewrites.
  This makes the code simpler and more efficient.
- Also added comments.
compiler/typecheck/Inst.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcMType.lhs
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcSimplify.lhs
compiler/typecheck/TcTyFuns.lhs
compiler/typecheck/TcUnify.lhs
compiler/types/Type.lhs