[project @ 2000-07-07 12:13:43 by simonpj]
This commit moves the instance environment out of the Class data structure, where it was immutable, to part of the type-checker environment. This change is absolutely essential as part of our move to GHCi, and I think it's also going to be necessary for Andrei's work on generic functions. As part of this change, we can remove a) types/InstEnv.* (thereby also removing a hi-boot loop) b) a tc-fixpoint-loop in TcModule Both of these are worthwhile simplifications.
Showing
- ghc/compiler/DEPEND-NOTES 1 addition, 3 deletionsghc/compiler/DEPEND-NOTES
- ghc/compiler/typecheck/Inst.lhs 15 additions, 34 deletionsghc/compiler/typecheck/Inst.lhs
- ghc/compiler/typecheck/TcClassDcl.lhs 1 addition, 3 deletionsghc/compiler/typecheck/TcClassDcl.lhs
- ghc/compiler/typecheck/TcDeriv.lhs 13 additions, 14 deletionsghc/compiler/typecheck/TcDeriv.lhs
- ghc/compiler/typecheck/TcEnv.lhs 321 additions, 46 deletionsghc/compiler/typecheck/TcEnv.lhs
- ghc/compiler/typecheck/TcImprove.lhs 32 additions, 36 deletionsghc/compiler/typecheck/TcImprove.lhs
- ghc/compiler/typecheck/TcInstUtil.lhs 8 additions, 33 deletionsghc/compiler/typecheck/TcInstUtil.lhs
- ghc/compiler/typecheck/TcModule.lhs 11 additions, 19 deletionsghc/compiler/typecheck/TcModule.lhs
- ghc/compiler/typecheck/TcSimplify.lhs 61 additions, 56 deletionsghc/compiler/typecheck/TcSimplify.lhs
- ghc/compiler/typecheck/TcTyClsDecls.lhs 13 additions, 15 deletionsghc/compiler/typecheck/TcTyClsDecls.lhs
- ghc/compiler/types/Class.lhs 2 additions, 7 deletionsghc/compiler/types/Class.lhs
- ghc/compiler/types/InstEnv.hi-boot 0 additions, 6 deletionsghc/compiler/types/InstEnv.hi-boot
- ghc/compiler/types/InstEnv.hi-boot-5 0 additions, 4 deletionsghc/compiler/types/InstEnv.hi-boot-5
- ghc/compiler/types/InstEnv.lhs 0 additions, 243 deletionsghc/compiler/types/InstEnv.lhs
Loading
Please register or sign in to comment