mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-22 23:53:12 -06:00
overloading API and examples
This commit is contained in:
1 parent
8a55561cbf
commit
756b7708af
8 files changed
+428
-2
No files matched your search
@@ -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