summaryrefslogtreecommitdiff
path: root/compiler/GHC/Plugins.hs
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2020-04-27 17:08:19 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-04-28 15:40:42 -0400
commit518a63d4d7e31e49a81ad66d5e5ccb1f790f6de9 (patch)
tree2424d1fb4c64313a5e98f807789d575de9942f97 /compiler/GHC/Plugins.hs
parent4b9764db7c190de377c06dfc71bfe6e4b37c7eb0 (diff)
downloadhaskell-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