projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement fuzzy matching for the renamer
[ghc-hetmet.git]
/
compiler
/
typecheck
/
TcInteract.lhs
diff --git
a/compiler/typecheck/TcInteract.lhs
b/compiler/typecheck/TcInteract.lhs
index
bc0aae0
..
30b1ae1
100644
(file)
--- a/
compiler/typecheck/TcInteract.lhs
+++ b/
compiler/typecheck/TcInteract.lhs
@@
-1963,12
+1963,11
@@
matchClassInst clas tys loc
; tys <- instDFunTypes mb_inst_tys
; let (theta, _) = tcSplitPhiTy (applyTys (idType dfun_id) tys)
; if null theta then
; tys <- instDFunTypes mb_inst_tys
; let (theta, _) = tcSplitPhiTy (applyTys (idType dfun_id) tys)
; if null theta then
- return (GenInst [] (EvDFunApp dfun_id tys [] []))
+ return (GenInst [] (EvDFunApp dfun_id tys []))
else do
{ ev_vars <- instDFunConstraints theta
; let wevs = [WantedEvVar w loc | w <- ev_vars]
else do
{ ev_vars <- instDFunConstraints theta
; let wevs = [WantedEvVar w loc | w <- ev_vars]
- ; return $ GenInst wevs (EvDFunApp dfun_id tys ev_vars ev_vars) }
- -- NB: All the dependencies are ev_vars
+ ; return $ GenInst wevs (EvDFunApp dfun_id tys ev_vars) }
}
}
\end{code}
}
}
\end{code}