diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2020-04-27 17:08:19 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-28 15:40:42 -0400 |
commit | 518a63d4d7e31e49a81ad66d5e5ccb1f790f6de9 (patch) | |
tree | 2424d1fb4c64313a5e98f807789d575de9942f97 /compiler/GHC/Plugins.hs | |
parent | 4b9764db7c190de377c06dfc71bfe6e4b37c7eb0 (diff) | |
download | haskell-518a63d4d7e31e49a81ad66d5e5ccb1f790f6de9.tar.gz |
Make boxed 1-tuples have known keys
Unlike other tuples, which use special syntax and are "known" by way
of a special `isBuiltInOcc_maybe` code path, boxed 1-tuples do not
use special syntax. Therefore, in order to make sure that the
internals of GHC are aware of the `data Unit a = Unit a` definition
in `GHC.Tuple`, we give `Unit` known keys. For the full details, see
`Note [One-tuples] (Wrinkle: Make boxed one-tuple names have known keys)`
in `GHC.Builtin.Types`.
Fixes #18097.
Diffstat (limited to 'compiler/GHC/Plugins.hs')
0 files changed, 0 insertions, 0 deletions