[project @ 1999-01-27 14:51:14 by simonpj]
Finally! This commits the ongoing saga of Simon's hygiene sweep FUNCTIONALITY ~~~~~~~~~~~~~ a) The 'unused variable' warnings from the renamer work. b) Better error messages here and there, esp type checker c) Fixities for Haskell 98 (maybe I'd done that before) d) Lazy reporting of name clashes for Haskell 98 (ditto) HYGIENE ~~~~~~~ a) type OccName has its own module. OccNames are represented by a single FastString, not three as in the last round. This string is held in Z-encoded form; a decoding function decodes for printing in user error messages. There's a nice tight encoding for (,,,,,,,,,,,,,,,,,,,,,,,,,,,,,) b) type Module is a proper ADT, in module OccName c) type RdrName is a proper ADT, in its own module d) type Name has a new, somwhat tidier, representation e) much grunting in the renamer to get Provenances right. This makes error messages look better (no spurious qualifiers)
Showing
- ghc/compiler/basicTypes/BasicTypes.lhs 1 addition, 34 deletionsghc/compiler/basicTypes/BasicTypes.lhs
- ghc/compiler/basicTypes/Id.lhs 6 additions, 10 deletionsghc/compiler/basicTypes/Id.lhs
- ghc/compiler/basicTypes/MkId.lhs 3 additions, 2 deletionsghc/compiler/basicTypes/MkId.lhs
- ghc/compiler/basicTypes/Name.lhs 192 additions, 141 deletionsghc/compiler/basicTypes/Name.lhs
- ghc/compiler/basicTypes/OccName.lhs 494 additions, 388 deletionsghc/compiler/basicTypes/OccName.lhs
- ghc/compiler/basicTypes/SrcLoc.lhs 24 additions, 13 deletionsghc/compiler/basicTypes/SrcLoc.lhs
- ghc/compiler/basicTypes/Var.hi-boot 3 additions, 1 deletionghc/compiler/basicTypes/Var.hi-boot
- ghc/compiler/basicTypes/Var.hi-boot-5 3 additions, 1 deletionghc/compiler/basicTypes/Var.hi-boot-5
- ghc/compiler/codeGen/CgCase.lhs 7 additions, 2 deletionsghc/compiler/codeGen/CgCase.lhs
- ghc/compiler/codeGen/CodeGen.lhs 3 additions, 9 deletionsghc/compiler/codeGen/CodeGen.lhs
- ghc/compiler/coreSyn/PprCore.lhs 7 additions, 7 deletionsghc/compiler/coreSyn/PprCore.lhs
- ghc/compiler/deSugar/Check.lhs 5 additions, 4 deletionsghc/compiler/deSugar/Check.lhs
- ghc/compiler/deSugar/Desugar.lhs 6 additions, 4 deletionsghc/compiler/deSugar/Desugar.lhs
- ghc/compiler/deSugar/DsBinds.lhs 1 addition, 1 deletionghc/compiler/deSugar/DsBinds.lhs
- ghc/compiler/deSugar/DsForeign.lhs 23 additions, 6 deletionsghc/compiler/deSugar/DsForeign.lhs
- ghc/compiler/deSugar/DsMonad.lhs 2 additions, 5 deletionsghc/compiler/deSugar/DsMonad.lhs
- ghc/compiler/deSugar/Match.lhs 14 additions, 16 deletionsghc/compiler/deSugar/Match.lhs
- ghc/compiler/hsSyn/HsBinds.lhs 12 additions, 11 deletionsghc/compiler/hsSyn/HsBinds.lhs
- ghc/compiler/hsSyn/HsDecls.lhs 11 additions, 12 deletionsghc/compiler/hsSyn/HsDecls.lhs
- ghc/compiler/hsSyn/HsExpr.hi-boot 1 addition, 1 deletionghc/compiler/hsSyn/HsExpr.hi-boot
Loading
Please register or sign in to comment