"README.md" did not exist on "local-gc"
[project @ 2001-07-13 13:29:56 by simonpj]
------------------------------------ Tidy up the "syntax rebinding" story ------------------------------------ I found a bug in the code that dealt with re-binding implicit numerical syntax: literals (fromInteger/fromRational) negation (negate) n+k patterns (minus) This is triggered by the -fno-implicit-prelude flag, and it used to be handled via the PrelNames.SyntaxMap. But I found a nicer way to do it that involves much less code, and doesn't have the bug. The explanation is with RnEnv.lookupSyntaxName
Showing
- ghc/compiler/hsSyn/HsExpr.lhs 3 additions, 1 deletionghc/compiler/hsSyn/HsExpr.lhs
- ghc/compiler/hsSyn/HsLit.lhs 14 additions, 11 deletionsghc/compiler/hsSyn/HsLit.lhs
- ghc/compiler/hsSyn/HsPat.lhs 7 additions, 5 deletionsghc/compiler/hsSyn/HsPat.lhs
- ghc/compiler/main/HscMain.lhs 2 additions, 2 deletionsghc/compiler/main/HscMain.lhs
- ghc/compiler/parser/ParseUtil.lhs 4 additions, 3 deletionsghc/compiler/parser/ParseUtil.lhs
- ghc/compiler/parser/Parser.y 3 additions, 3 deletionsghc/compiler/parser/Parser.y
- ghc/compiler/parser/RdrHsSyn.lhs 14 additions, 4 deletionsghc/compiler/parser/RdrHsSyn.lhs
- ghc/compiler/prelude/PrelNames.lhs 0 additions, 44 deletionsghc/compiler/prelude/PrelNames.lhs
- ghc/compiler/rename/Rename.lhs 8 additions, 9 deletionsghc/compiler/rename/Rename.lhs
- ghc/compiler/rename/RnEnv.lhs 37 additions, 28 deletionsghc/compiler/rename/RnEnv.lhs
- ghc/compiler/rename/RnExpr.lhs 31 additions, 27 deletionsghc/compiler/rename/RnExpr.lhs
- ghc/compiler/typecheck/Inst.lhs 36 additions, 40 deletionsghc/compiler/typecheck/Inst.lhs
- ghc/compiler/typecheck/TcEnv.lhs 4 additions, 22 deletionsghc/compiler/typecheck/TcEnv.lhs
- ghc/compiler/typecheck/TcExpr.lhs 3 additions, 4 deletionsghc/compiler/typecheck/TcExpr.lhs
- ghc/compiler/typecheck/TcHsSyn.lhs 2 additions, 2 deletionsghc/compiler/typecheck/TcHsSyn.lhs
- ghc/compiler/typecheck/TcModule.lhs 15 additions, 18 deletionsghc/compiler/typecheck/TcModule.lhs
- ghc/compiler/typecheck/TcPat.lhs 5 additions, 5 deletionsghc/compiler/typecheck/TcPat.lhs
Loading
Please register or sign in to comment