diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2016-12-14 16:47:53 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-15 10:42:25 -0500 |
commit | 9550b8d810c3ce9fcf3419da367041124e2673de (patch) | |
tree | e9abfa4cbc4b90364a22d4f4c528c43561eb0dc6 /compiler/codeGen | |
parent | fe5d68ad1ae5faaaf786f334edf251295195ef6d (diff) | |
download | haskell-9550b8d810c3ce9fcf3419da367041124e2673de.tar.gz |
Make unboxedTuple{Type,Data}Name support 0- and 1-tuples
Previously, these functions were hardcoded so as to always `error`
whenever given an argument of 0 or 1. This restriction can be lifted
pretty easily, however.
This requires a slight tweak to `isBuiltInOcc_maybe` in `TysWiredIn` to
allow it to recognize `Unit#` (which is the hard-wired `OccName` for
unboxed 1-tuples).
Fixes #12977.
Test Plan: make test TEST=12977
Reviewers: austin, goldfire, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2847
GHC Trac Issues: #12977
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions