[Git][ghc/ghc][wip/tyconapp-opts] Fix it

Ben Gamari gitlab at gitlab.haskell.org
Thu Mar 26 02:57:03 UTC 2020



Ben Gamari pushed to branch wip/tyconapp-opts at Glasgow Haskell Compiler / GHC


Commits:
bff55d1a by Ben Gamari at 2020-03-25T22:56:57-04:00
Fix it

- - - - -


2 changed files:

- compiler/GHC/Core/Type.hs
- compiler/prelude/TysWiredIn.hs


Changes:

=====================================
compiler/GHC/Core/Type.hs
=====================================
@@ -243,7 +243,7 @@ import GHC.Core.TyCon
 import TysPrim
 import {-# SOURCE #-} TysWiredIn ( listTyCon, typeNatKind
                                  , typeSymbolKind, liftedTypeKind
-                                 , liftedTypeKindTyCon, liftedRepDataConTy
+                                 , liftedTypeKindTyCon,
                                  , constraintKind )
 import Name( Name )
 import PrelNames


=====================================
compiler/prelude/TysWiredIn.hs
=====================================
@@ -1179,8 +1179,8 @@ runtimeRepTy = mkTyConTy runtimeRepTyCon
 -- type Type = tYPE 'LiftedRep
 liftedTypeKindTyCon :: TyCon
 liftedTypeKindTyCon   = buildSynTyCon liftedTypeKindTyConName
-                                       [] liftedTypeKind []
-                                       (tYPE liftedRepTy)
+                                       [] liftedTypeKind [] rhs
+  where rhs = TyCoRep.TyConApp tYPETyCon [liftedRepTy]
 
 runtimeRepTyCon :: TyCon
 runtimeRepTyCon = pcTyCon runtimeRepTyConName Nothing []



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/bff55d1a2094f242f11740ded8287423f718d34e

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/bff55d1a2094f242f11740ded8287423f718d34e
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200325/feb15371/attachment.html>


More information about the ghc-commits mailing list