summaryrefslogtreecommitdiff
path: root/compiler/typecheck/TcGenGenerics.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/typecheck/TcGenGenerics.hs')
-rw-r--r--compiler/typecheck/TcGenGenerics.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/typecheck/TcGenGenerics.hs b/compiler/typecheck/TcGenGenerics.hs
index 9da94280ce..6372c66912 100644
--- a/compiler/typecheck/TcGenGenerics.hs
+++ b/compiler/typecheck/TcGenGenerics.hs
@@ -434,8 +434,8 @@ tc_mkRepFamInsts gk tycon inst_tys =
repTy' = substTy subst repTy
tcv' = tyCoVarsOfTypeList inst_ty
(tv', cv') = partition isTyVar tcv'
- tvs' = toposortTyVars tv'
- cvs' = toposortTyVars cv'
+ tvs' = scopedSort tv'
+ cvs' = scopedSort cv'
axiom = mkSingleCoAxiom Nominal rep_name tvs' cvs'
fam_tc inst_tys repTy'