[project @ 2000-02-23 19:41:50 by lewie]
Handle `with' more cleverly. I was generating partially applied methods for the case where the `with' expression was also overloaded, but this was buggy, and completely unnecessary. Instead, simply force the method binding at the point of the `with' expression (we reap no benefits from pushing the sharing further out anyway), and release the remainder of the method's context into the LIE.
Showing
- ghc/compiler/basicTypes/Id.lhs 6 additions, 2 deletionsghc/compiler/basicTypes/Id.lhs
- ghc/compiler/typecheck/Inst.lhs 20 additions, 11 deletionsghc/compiler/typecheck/Inst.lhs
- ghc/compiler/typecheck/TcExpr.lhs 13 additions, 3 deletionsghc/compiler/typecheck/TcExpr.lhs
- ghc/compiler/typecheck/TcHsSyn.lhs 2 additions, 2 deletionsghc/compiler/typecheck/TcHsSyn.lhs
Loading
Please register or sign in to comment