[commit: ghc] master: Remove panics for TcTyCon (0c9d9de)
git at git.haskell.org
git at git.haskell.org
Tue Feb 21 17:44:52 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0c9d9dec0a924a4f34f4cff26d004143c028861a/ghc
>---------------------------------------------------------------
commit 0c9d9dec0a924a4f34f4cff26d004143c028861a
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Feb 21 14:34:50 2017 +0000
Remove panics for TcTyCon
Previously TcTyCons were used only for knot-tying, but now they
are also used after an error, to add a benign TyCon to the envt
so we can carry on; see TyCon.makeRecoveryTyCon. But since it
is used in this way, subsequent declarations may see a TcTyCon
(e.g. during injectivity checks) and should not have a heart attack
as a result.
See Note [TcTyCon] in TyCon.
This fixes Trac #13271
>---------------------------------------------------------------
0c9d9dec0a924a4f34f4cff26d004143c028861a
compiler/typecheck/TcTyClsDecls.hs | 4 +-
compiler/types/TyCon.hs | 103 ++++++++++++++++++++-----------------
2 files changed, 57 insertions(+), 50 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 0c9d9dec0a924a4f34f4cff26d004143c028861a
More information about the ghc-commits
mailing list