[commit: ghc] wip/T14880-accum: Fix merge conflicts between #14880 and master (2d7211e)

git at git.haskell.org git at git.haskell.org
Tue Sep 4 07:22:05 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T14880-accum
Link       : http://ghc.haskell.org/trac/ghc/changeset/2d7211e8ffc89990e4723725bec2b349c21cd83e/ghc

>---------------------------------------------------------------

commit 2d7211e8ffc89990e4723725bec2b349c21cd83e
Author: Tobias Dammers <tdammers at gmail.com>
Date:   Tue Sep 4 09:20:23 2018 +0200

    Fix merge conflicts between #14880 and master


>---------------------------------------------------------------

2d7211e8ffc89990e4723725bec2b349c21cd83e
 compiler/types/TyCoRep.hs | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

diff --git a/compiler/types/TyCoRep.hs b/compiler/types/TyCoRep.hs
index 3c1133a..5373d26 100644
--- a/compiler/types/TyCoRep.hs
+++ b/compiler/types/TyCoRep.hs
@@ -1673,8 +1673,9 @@ tyCoVarsOfCos cos = ty_co_vars_of_cos cos emptyVarSet emptyVarSet
 
 
 ty_co_vars_of_co :: Coercion -> TyCoVarSet -> TyCoVarSet -> TyCoVarSet
-ty_co_vars_of_co (Refl ty)          is acc = ty_co_vars_of_type ty is acc
--- ty_co_vars_of_co (Refl _ ty)          is acc = ty_co_vars_of_type ty is acc
+ty_co_vars_of_co (Refl ty)            is acc = ty_co_vars_of_type ty is acc
+ty_co_vars_of_co (GRefl _ ty mrefl)   is acc = ty_co_vars_of_type ty is $
+                                               ty_co_vars_of_mco mrefl is acc
 ty_co_vars_of_co (TyConAppCo _ _ cos) is acc = ty_co_vars_of_cos cos is acc
 ty_co_vars_of_co (AppCo co arg)       is acc = ty_co_vars_of_co co is $
                                                ty_co_vars_of_co arg is acc
@@ -1696,12 +1697,16 @@ ty_co_vars_of_co (NthCo _ _ co)      is acc = ty_co_vars_of_co co is acc
 ty_co_vars_of_co (LRCo _ co)         is acc = ty_co_vars_of_co co is acc
 ty_co_vars_of_co (InstCo co arg)     is acc = ty_co_vars_of_co co is $
                                               ty_co_vars_of_co arg is acc
-ty_co_vars_of_co (CoherenceCo c1 c2) is acc = ty_co_vars_of_co c1 is $
-                                              ty_co_vars_of_co c2 is acc
+-- ty_co_vars_of_co (CoherenceCo c1 c2) is acc = ty_co_vars_of_co c1 is $
+--                                               ty_co_vars_of_co c2 is acc
 ty_co_vars_of_co (KindCo co)         is acc = ty_co_vars_of_co co is acc
 ty_co_vars_of_co (SubCo co)          is acc = ty_co_vars_of_co co is acc
 ty_co_vars_of_co (AxiomRuleCo _ cs)  is acc = ty_co_vars_of_cos cs is acc
 
+ty_co_vars_of_mco :: MCoercion -> TyCoVarSet -> TyCoVarSet -> TyCoVarSet
+ty_co_vars_of_mco MRefl    _is acc = acc
+ty_co_vars_of_mco (MCo co) is  acc = ty_co_vars_of_co co is acc
+
 ty_co_vars_of_co_var :: CoVar -> TyCoVarSet -> TyCoVarSet -> TyCoVarSet
 ty_co_vars_of_co_var v is acc
   | v `elemVarSet` is = acc
@@ -1875,9 +1880,9 @@ coVarsOfType ty = getCoVarSet (tyCoFVsOfType ty)
 coVarsOfTypes :: [Type] -> TyCoVarSet
 coVarsOfTypes tys = getCoVarSet (tyCoFVsOfTypes tys)
 
-coVarsOfMCo :: MCoercion -> CoVarSet
-coVarsOfMCo MRefl    = emptyVarSet
-coVarsOfMCo (MCo co) = coVarsOfCo co
+-- coVarsOfMCo :: MCoercion -> CoVarSet
+-- coVarsOfMCo MRefl    = emptyVarSet
+-- coVarsOfMCo (MCo co) = coVarsOfCo co
 
 coVarsOfCo :: Coercion -> CoVarSet
 coVarsOfCo co = getCoVarSet (tyCoFVsOfCo co)
@@ -1903,14 +1908,14 @@ coVarsOfCo co = getCoVarSet (tyCoFVsOfCo co)
 -- coVarsOfCo (SubCo co)           = coVarsOfCo co
 -- coVarsOfCo (AxiomRuleCo _ cs)   = coVarsOfCos cs
 
-coVarsOfCoVar :: CoVar -> CoVarSet
-coVarsOfCoVar v = unitVarSet v `unionVarSet` coVarsOfType (varType v)
-
-coVarsOfProv :: UnivCoProvenance -> CoVarSet
-coVarsOfProv UnsafeCoerceProv    = emptyVarSet
-coVarsOfProv (PhantomProv co)    = coVarsOfCo co
-coVarsOfProv (ProofIrrelProv co) = coVarsOfCo co
-coVarsOfProv (PluginProv _)      = emptyVarSet
+-- coVarsOfCoVar :: CoVar -> CoVarSet
+-- coVarsOfCoVar v = unitVarSet v `unionVarSet` coVarsOfType (varType v)
+-- 
+-- coVarsOfProv :: UnivCoProvenance -> CoVarSet
+-- coVarsOfProv UnsafeCoerceProv    = emptyVarSet
+-- coVarsOfProv (PhantomProv co)    = coVarsOfCo co
+-- coVarsOfProv (ProofIrrelProv co) = coVarsOfCo co
+-- coVarsOfProv (PluginProv _)      = emptyVarSet
 
 coVarsOfCos :: [Coercion] -> CoVarSet
 coVarsOfCos cos = getCoVarSet (tyCoFVsOfCos cos)



More information about the ghc-commits mailing list