diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-14 09:23:24 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-26 02:06:51 -0500 |
commit | 61a203ba2e942b39c5f26a7ad01017841937fd0a (patch) | |
tree | e1300c3fc87bdd2d6e24fc2a04fc94cdb07f21ab /testsuite/tests/simplCore | |
parent | 75e4e09040862dd12e6960d366868ca8ec434035 (diff) | |
download | haskell-61a203ba2e942b39c5f26a7ad01017841937fd0a.tar.gz |
Make typechecking unfoldings from interfaces lazier
The old logic was unecessarily strict in loading unfoldings because when
reading the unfolding we would case on the result of attempting to load
the template before commiting to which type of unfolding we were
producing. Hence trying to inspect any of the information about an
unfolding would force the template to be loaded.
This also removes a potentially hard to discover bug where if the
template failed to be typechecked for some reason then we would just not
return an unfolding. Instead we now panic so these bad situations which
should never arise can be identified.
Diffstat (limited to 'testsuite/tests/simplCore')
0 files changed, 0 insertions, 0 deletions