aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/GhcUtils.hs
diff options
context:
space:
mode:
authorAndrew Martin <andrew.thaddeus@gmail.com>2020-10-11 15:59:22 -0400
committerBen Gamari <ben@smart-cactus.org>2021-03-07 11:25:23 -0500
commitbd206f09715420aaa62341c9a96411a684eee6e9 (patch)
treed461354f9322918e926e5235b31bf8bb91366022 /haddock-api/src/Haddock/GhcUtils.hs
parent65868397a59e61b575c70c0757dddbbba9cb5ac9 (diff)
Update for boxed rep
Diffstat (limited to 'haddock-api/src/Haddock/GhcUtils.hs')
-rw-r--r--haddock-api/src/Haddock/GhcUtils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/GhcUtils.hs b/haddock-api/src/Haddock/GhcUtils.hs
index 6e21e094..41801710 100644
--- a/haddock-api/src/Haddock/GhcUtils.hs
+++ b/haddock-api/src/Haddock/GhcUtils.hs
@@ -44,8 +44,8 @@ import GHC.Types.Var.Set ( VarSet, emptyVarSet )
import GHC.Types.Var.Env ( TyVarEnv, extendVarEnv, elemVarEnv, emptyVarEnv )
import GHC.Core.TyCo.Rep ( Type(..) )
import GHC.Core.Type ( isRuntimeRepVar )
-import GHC.Builtin.Types( liftedRepDataConTyCon )
import GHC.Parser.Annotation (IsUnicodeSyntax(..))
+import GHC.Builtin.Types( liftedRepTy )
import GHC.Data.StringBuffer ( StringBuffer )
import qualified GHC.Data.StringBuffer as S
@@ -743,7 +743,7 @@ defaultRuntimeRepVars = go emptyVarEnv
go subs (TyVarTy tv)
| tv `elemVarEnv` subs
- = TyConApp liftedRepDataConTyCon []
+ = liftedRepTy
| otherwise
= TyVarTy (updateTyVarKind (go subs) tv)