[project @ 1999-11-29 17:34:14 by simonpj]
Make it so that a class decl generates default method decls for every method, not just for the ones that the user supplies default-methods for. GHC will never call these default-default methods, because when it finds an instance decl with no defn for a method, *and* the class decl doesn't have a user-programmed default method, it whips up a new default method for that instance decl so that the error message is more informative than the default-default method would be. But Hugs isn't so smart, and wants to call something from the class decl. This change required fiddling with more than I expected. Sigh. Simon
Showing
- ghc/compiler/basicTypes/MkId.lhs 4 additions, 4 deletionsghc/compiler/basicTypes/MkId.lhs
- ghc/compiler/hsSyn/HsBinds.lhs 7 additions, 5 deletionsghc/compiler/hsSyn/HsBinds.lhs
- ghc/compiler/main/Main.lhs 6 additions, 6 deletionsghc/compiler/main/Main.lhs
- ghc/compiler/main/MkIface.lhs 7 additions, 7 deletionsghc/compiler/main/MkIface.lhs
- ghc/compiler/parser/RdrHsSyn.lhs 4 additions, 3 deletionsghc/compiler/parser/RdrHsSyn.lhs
- ghc/compiler/rename/Rename.lhs 1 addition, 1 deletionghc/compiler/rename/Rename.lhs
- ghc/compiler/rename/RnBinds.lhs 1 addition, 1 deletionghc/compiler/rename/RnBinds.lhs
- ghc/compiler/rename/RnIfaces.lhs 1 addition, 1 deletionghc/compiler/rename/RnIfaces.lhs
- ghc/compiler/rename/RnMonad.lhs 1 addition, 1 deletionghc/compiler/rename/RnMonad.lhs
- ghc/compiler/rename/RnSource.lhs 15 additions, 25 deletionsghc/compiler/rename/RnSource.lhs
- ghc/compiler/typecheck/TcClassDcl.lhs 32 additions, 45 deletionsghc/compiler/typecheck/TcClassDcl.lhs
- ghc/compiler/typecheck/TcInstDcls.lhs 6 additions, 6 deletionsghc/compiler/typecheck/TcInstDcls.lhs
- ghc/compiler/typecheck/TcSimplify.lhs 2 additions, 2 deletionsghc/compiler/typecheck/TcSimplify.lhs
- ghc/compiler/typecheck/TcTyClsDecls.lhs 3 additions, 3 deletionsghc/compiler/typecheck/TcTyClsDecls.lhs
- ghc/compiler/types/Class.lhs 36 additions, 34 deletionsghc/compiler/types/Class.lhs
Loading
Please register or sign in to comment