summaryrefslogtreecommitdiff
path: root/libraries/template-haskell/changelog.md
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2016-12-14 16:47:53 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-15 10:42:25 -0500
commit9550b8d810c3ce9fcf3419da367041124e2673de (patch)
treee9abfa4cbc4b90364a22d4f4c528c43561eb0dc6 /libraries/template-haskell/changelog.md
parentfe5d68ad1ae5faaaf786f334edf251295195ef6d (diff)
downloadhaskell-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 'libraries/template-haskell/changelog.md')
-rw-r--r--libraries/template-haskell/changelog.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/template-haskell/changelog.md b/libraries/template-haskell/changelog.md
index c4b8f034cf..1f41a6a528 100644
--- a/libraries/template-haskell/changelog.md
+++ b/libraries/template-haskell/changelog.md
@@ -16,6 +16,9 @@
* Add support for attaching deriving strategies to `deriving` statements
(#10598)
+ * `unboxedTupleTypeName` and `unboxedTupleDataName` now work for unboxed
+ 0-tuples and 1-tuples (#12977)
+
## 2.11.0.0 *May 2016*
* Bundled with GHC 8.0.1