alternative prtType to help debugging overload resolution errors

This commit is contained in:
aarne
2008-08-20 06:44:58 +00:00
parent 7d83d90e51
commit 74373394a6

View File

@@ -689,6 +689,7 @@ getOverload env@gr mt ot = case appForm ot of
checkWarn ("ignoring lock fields in resolving" +++ prt ot)
return (mkApp fun tts, val)
([],[]) -> do
---- let prtType _ = prt -- to debug grammars
raise $ "no overload instance of" +++ prt f +++
"for" +++ unwords (map (prtType env) tys) +++ "among" ++++
unlines [" " ++ unwords (map (prtType env) ty) | (ty,_) <- typs] ++