diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2020-05-01 16:22:40 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-05-04 01:56:59 -0400 |
commit | 8bdc03d61cb7a2f96887c86bd0b253f7c108fcde (patch) | |
tree | 16406da4e2ac5d89504695ad3a672caababdf022 /.gitignore | |
parent | b465dd4500beffe919e8b8dcd075008399fbf446 (diff) | |
download | haskell-8bdc03d61cb7a2f96887c86bd0b253f7c108fcde.tar.gz |
Don't return a panic in tcNestedSplice
In GHC.Tc.Gen.Splice.tcNestedSplice we were returning a
typechecked expression of "panic". That is usually OK, because
the result is discarded. But it happens that tcApp now looks at
the typechecked expression, trivially, to ask if it is tagToEnum.
So being bottom is bad.
Moreover a debug-trace might print it out.
So better to return a civilised expression, even though it is
usually discarded.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions