summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-05-19 21:05:30 +0200
committerBen Gamari <ben@smart-cactus.org>2016-05-19 21:34:44 +0200
commita88bb1b1518389817583290acaebfd6454aa3cec (patch)
tree8ef4bfc51390ac4637cc2faddcf136ed5f53cd61 /compiler
parent2e6433af56a97ad9c501648afa5e1d8c6c17f82a (diff)
downloadhaskell-a88bb1b1518389817583290acaebfd6454aa3cec.tar.gz
Give lifted primitive types a representation
As of D1774 everything in GHC.Prim has a representation generated for it by TcTypeable (see #11120). Unfortunately I evidently missed propagating this change to lifted primitive types. This patch fixes this (#12082). Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2240 GHC Trac Issues: #12082
Diffstat (limited to 'compiler')
-rw-r--r--compiler/types/TyCon.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/types/TyCon.hs b/compiler/types/TyCon.hs
index 628eabd171..55f64166c8 100644
--- a/compiler/types/TyCon.hs
+++ b/compiler/types/TyCon.hs
@@ -1365,7 +1365,8 @@ mkLiftedPrimTyCon :: Name -> [TyBinder]
-> Kind -- ^ /result/ kind
-> [Role] -> TyCon
mkLiftedPrimTyCon name binders res_kind roles
- = mkPrimTyCon' name binders res_kind roles False Nothing
+ = mkPrimTyCon' name binders res_kind roles False (Just rep_nm)
+ where rep_nm = mkPrelTyConRepName name
mkPrimTyCon' :: Name -> [TyBinder]
-> Kind -- ^ /result/ kind