summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Solver/Monad.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simon.peytonjones@gmail.com>2023-05-17 22:24:54 +0100
committerSimon Peyton Jones <simon.peytonjones@gmail.com>2023-05-17 22:26:07 +0100
commitfbf5bcef8d532a88b68c15744d4df3c08a1c736c (patch)
tree75cf184ffeabee65a34bfe657a34af2a3e56dbd2 /compiler/GHC/Tc/Solver/Monad.hs
parent8a9164911df87cbf4ec6d86d0119b64b03d7aa7b (diff)
downloadhaskell-wip/T23070-dicts.tar.gz
Diffstat (limited to 'compiler/GHC/Tc/Solver/Monad.hs')
-rw-r--r--compiler/GHC/Tc/Solver/Monad.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/GHC/Tc/Solver/Monad.hs b/compiler/GHC/Tc/Solver/Monad.hs
index d385d27b29..c89a9f282b 100644
--- a/compiler/GHC/Tc/Solver/Monad.hs
+++ b/compiler/GHC/Tc/Solver/Monad.hs
@@ -707,9 +707,7 @@ lookupInInerts loc pty
-- | Look up a dictionary inert.
lookupInertDict :: InertCans -> CtLoc -> Class -> [Type] -> Maybe DictCt
lookupInertDict (IC { inert_dicts = dicts }) loc cls tys
- = case findDict dicts loc cls tys of
- Just ct -> Just ct
- _ -> Nothing
+ = findDict dicts loc cls tys
-- | Look up a solved inert.
lookupSolvedDict :: InertSet -> CtLoc -> Class -> [Type] -> Maybe CtEvidence