summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Deriv/Generate.hs
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2023-05-11 13:08:14 +0200
committerBen Gamari <ben@smart-cactus.org>2023-05-17 13:01:51 -0400
commitc0017ff1af10c285bcdb2def8f88bb631ed90b99 (patch)
treefbfd10e8446f742b7bf474add173e9d2f097e24e /compiler/GHC/Tc/Deriv/Generate.hs
parente15b58678c73d02d7e3db9dab25d17d062b49244 (diff)
downloadhaskell-c0017ff1af10c285bcdb2def8f88bb631ed90b99.tar.gz
Don't panic in mkNewTyConRhs
This function could come across invalid newtype constructors, as we only perform validity checking of newtypes once we are outside the knot-tied typechecking loop. This patch changes this function to fake up a stub type in the case of an invalid newtype, instead of panicking. This patch also changes "checkNewDataCon" so that it reports as many errors as possible at once. Fixes #23308 (cherry picked from commit c176ad1835ccfe55e2bde875b4a35e9d226ff657)
Diffstat (limited to 'compiler/GHC/Tc/Deriv/Generate.hs')
0 files changed, 0 insertions, 0 deletions