summaryrefslogtreecommitdiff
path: root/compiler/GHC/Runtime/Eval.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Runtime/Eval.hs')
-rw-r--r--compiler/GHC/Runtime/Eval.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Runtime/Eval.hs b/compiler/GHC/Runtime/Eval.hs
index 55b4f3d32b..e33c8329d4 100644
--- a/compiler/GHC/Runtime/Eval.hs
+++ b/compiler/GHC/Runtime/Eval.hs
@@ -63,6 +63,7 @@ import GHC.Iface.Env ( newInteractiveBinder )
import GHC.Core.FamInstEnv ( FamInst )
import GHC.Core.FVs ( orphNamesOfFamInst )
import GHC.Core.TyCon
+import GHC.Core.Multiplicity ( irrelevantMult )
import GHC.Core.Type hiding( typeKind )
import qualified GHC.Core.Type as Type
import GHC.Types.RepType
@@ -1102,7 +1103,7 @@ findMatchingInstances ty = do
try_cls ies cls
| Just (arg_kind, res_kind) <- splitFunTy_maybe (tyConKind $ classTyCon cls)
, tcIsConstraintKind res_kind
- , Type.typeKind ty `eqType` arg_kind
+ , Type.typeKind ty `eqType` irrelevantMult arg_kind
, (matches, _, _) <- lookupInstEnv True ies cls [ty]
= matches
| otherwise