forked from GitHub/gf-core
overloading API and examples
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user