Splice singleton unboxed tuples correctly with Template Haskell
authorRyan Scott <ryan.gl.scott@gmail.com>
Mon, 22 Aug 2016 14:39:12 +0000 (10:39 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Mon, 22 Aug 2016 14:39:13 +0000 (10:39 -0400)
commitfb0d87f1c4a35fa2aaf7f6dd55edbc71c7c3b44d
tree26e4a690f3d6f393205d2bc498df20f2ff7e0096
parentf9aa996f0af59f32dc7b1528ff78be41413a9c27
Splice singleton unboxed tuples correctly with Template Haskell

Summary:
Previously, TH would implicitly remove the parentheses when splicing in
singleton unboxed tuple types (e.g., turning `(# Int #)` into `Int`). Luckily,
the fix is simply to delete some code.

Fixes #12513.

Test Plan: make test TEST=T12513

Reviewers: hvr, bgamari, austin, goldfire

Reviewed By: goldfire

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2462

GHC Trac Issues: #12513
compiler/hsSyn/Convert.hs
docs/users_guide/8.0.2-notes.rst
testsuite/tests/th/T12513.hs [new file with mode: 0644]
testsuite/tests/th/T12513.stderr [new file with mode: 0644]
testsuite/tests/th/all.T