1
0
forked from GitHub/gf-core

overloading API and examples

This commit is contained in:
aarne
2006-11-18 21:10:46 +00:00
parent 8a55561cbf
commit 756b7708af
8 changed files with 428 additions and 2 deletions

View File

@@ -589,8 +589,8 @@ inferLType gr trm = case trm of
_ -> raise $ "no overload instance of" +++ prt f +++
"for" +++ unwords (map prtType tys) +++ "among" ++++
unlines [unwords (map prtType ty) | (ty,_) <- typs]
++++ "DEBUG" +++ unwords (map show tys) +++ ";"
++++ unlines (map (show . fst) typs) ----
---- ++++ "DEBUG" +++ unwords (map show tys) +++ ";"
---- ++++ unlines (map (show . fst) typs) ----
lookupOverloadInstance tys typs = lookup tys typs ---- use Map