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

Ben Gamari gitlab at gitlab.haskell.org
Thu Mar 26 03:39:38 UTC 2020



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


Commits:
8a7e82db by Ben Gamari at 2020-03-25T23:39:30-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/8a7e82dbecae343c061ddcaee6cf22812a2b8d2b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a7e82dbecae343c061ddcaee6cf22812a2b8d2b
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/4e0672eb/attachment.html>


More information about the ghc-commits mailing list