diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2023-02-11 18:31:07 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2023-03-10 02:11:16 -0500 |
commit | d81d0a0e8ed6cf35b9772404ce9d7f109481bcd6 (patch) | |
tree | cac8ecb113d4561b87a7eb4144e760422be1c444 /compiler/GHC/Plugins.hs | |
parent | 9706e3de45b05bc8d4ee11b693a5a66e47b93dc3 (diff) | |
download | haskell-d81d0a0e8ed6cf35b9772404ce9d7f109481bcd6.tar.gz |
Treat type data declarations as empty when checking pattern-matching coverage
The data constructors for a `type data` declaration don't exist at the value
level, so we don't want GHC to warn users to match on them.
Fixes #22964.
(cherry picked from commit 96dc58b9225d91a7912957c6be5d9c7a95e51718)
Diffstat (limited to 'compiler/GHC/Plugins.hs')
0 files changed, 0 insertions, 0 deletions