Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
5188 commits behind the upstream repository.
Simon Peyton Jones's avatar
Simon Peyton Jones authored
Previously, the logic for checking if a data constructor needs a wrapper or not
would take into account whether the constructor's fields have explicit
strictness (e.g., `data T = MkT !Int`), but the logic would _not_ take into
account whether `StrictData` was enabled. This meant that something like `type
data T = MkT Int` would incorrectly generate a wrapper for `MkT` if
`StrictData` was enabled, leading to the horrible errors seen in #24620. To fix
this, we disable generating wrappers for `type data` constructors altogether.

Fixes #24620.

Co-authored-by: default avatarRyan Scott <ryan.gl.scott@gmail.com>
5e4f4ba8
History
Name Last commit Last update
..
should_compile
should_fail
should_run
Makefile