mkDataConRep: fix bug in strictness signature (#14290)
The strictness signature for a data con wrapper wasn't including any dictionary arguments, which meant that bangs on the fields of a constructor with an existential context would be moved to the wrong fields. See T14290 for an example. Test Plan: * New test T14290 * validate Reviewers: simonpj, niteria, austin, bgamari, erikd Reviewed By: simonpj, bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #14290 Differential Revision: https://phabricator.haskell.org/D4040 (cherry picked from commit 5935acdb)
Showing
- compiler/basicTypes/MkId.hs 5 additions, 1 deletioncompiler/basicTypes/MkId.hs
- testsuite/tests/stranal/should_run/T14290.hs 17 additions, 0 deletionstestsuite/tests/stranal/should_run/T14290.hs
- testsuite/tests/stranal/should_run/all.T 1 addition, 0 deletionstestsuite/tests/stranal/should_run/all.T
Loading
Please register or sign in to comment