From 9dbf9c56609132c7a3731819b53e73045c430e3b Mon Sep 17 00:00:00 2001 From: aarne Date: Sun, 1 Jun 2008 11:02:02 +0000 Subject: added an argument place to ResOverload for extended overloads --- src-3.0/GF/Source/GrammarToSource.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src-3.0/GF/Source/GrammarToSource.hs') diff --git a/src-3.0/GF/Source/GrammarToSource.hs b/src-3.0/GF/Source/GrammarToSource.hs index 75446a6e4..e00edc689 100644 --- a/src-3.0/GF/Source/GrammarToSource.hs +++ b/src-3.0/GF/Source/GrammarToSource.hs @@ -96,10 +96,12 @@ trAnyDef (i,info) = let i' = tri i in case info of May b -> P.ParDefIndir i' $ tri b _ -> P.ParDefAbs i']] - ResOverload tysts -> + ResOverload os tysts -> [P.DefOper [P.DDef [mkName i'] ( - P.EApp (P.EIdent $ tri $ cOverload) - (P.ERecord [P.LDFull [i'] (trt ty) (trt fu) | (ty,fu) <- tysts]))]] + foldl P.EApp + (P.EIdent $ tri $ cOverload) + (map trt os ++ + [P.ERecord [P.LDFull [i'] (trt ty) (trt fu) | (ty,fu) <- tysts]]))]] CncCat (Yes ty) Nope _ -> [P.DefLincat [P.PrintDef [mkName i'] (trt ty)]] -- cgit v1.2.3