[commit: ghc] master: Remove dead code in TcUnify (47561c9)
git at git.haskell.org
git at git.haskell.org
Tue Jul 24 21:27:33 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/47561c917deb8818161cd73a11a17582ba38c2de/ghc
>---------------------------------------------------------------
commit 47561c917deb8818161cd73a11a17582ba38c2de
Author: Krzysztof Gogolewski <krz.gogolewski at gmail.com>
Date: Tue Jul 24 23:26:56 2018 +0200
Remove dead code in TcUnify
Summary: RelaxedPolyRec is not used anymore
Test Plan: validate
Reviewers: bgamari, alpmestan
Reviewed By: alpmestan
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4983
>---------------------------------------------------------------
47561c917deb8818161cd73a11a17582ba38c2de
compiler/typecheck/TcUnify.hs | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/compiler/typecheck/TcUnify.hs b/compiler/typecheck/TcUnify.hs
index 2e66d8a..4aa9ed4 100644
--- a/compiler/typecheck/TcUnify.hs
+++ b/compiler/typecheck/TcUnify.hs
@@ -17,7 +17,7 @@ module TcUnify (
buildImplicationFor,
-- Various unifications
- unifyType, unifyTheta, unifyKind,
+ unifyType, unifyKind,
uType, promoteTcType,
swapOverTyVars, canSolveByUnification,
@@ -1235,18 +1235,6 @@ unifyKind thing ty1 ty2 = traceTc "ukind" (ppr ty1 $$ ppr ty2 $$ ppr thing) >>
, uo_visible = True } -- also always from a visible context
---------------
-unifyPred :: PredType -> PredType -> TcM TcCoercionN
--- Actual and expected types
-unifyPred = unifyType Nothing
-
----------------
-unifyTheta :: TcThetaType -> TcThetaType -> TcM [TcCoercionN]
--- Actual and expected types
-unifyTheta theta1 theta2
- = do { checkTc (equalLength theta1 theta2)
- (vcat [text "Contexts differ in length",
- nest 2 $ parens $ text "Use RelaxedPolyRec to allow this"])
- ; zipWithM unifyPred theta1 theta2 }
{-
%************************************************************************
More information about the ghc-commits
mailing list