summaryrefslogtreecommitdiff
path: root/src-3.0/GF/Compile/CheckGrammar.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-01 11:02:02 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-01 11:02:02 +0000
commit9dbf9c56609132c7a3731819b53e73045c430e3b (patch)
tree8a629aa5003111d82087797fb2eba25bf6165aa8 /src-3.0/GF/Compile/CheckGrammar.hs
parent2771367118994770907597c860cc7c4229496fd3 (diff)
added an argument place to ResOverload for extended overloads
Diffstat (limited to 'src-3.0/GF/Compile/CheckGrammar.hs')
-rw-r--r--src-3.0/GF/Compile/CheckGrammar.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-3.0/GF/Compile/CheckGrammar.hs b/src-3.0/GF/Compile/CheckGrammar.hs
index fe4b7223c..2fb4f5895 100644
--- a/src-3.0/GF/Compile/CheckGrammar.hs
+++ b/src-3.0/GF/Compile/CheckGrammar.hs
@@ -231,14 +231,14 @@ checkResInfo gr mo mm (c,info) = do
_ -> return (pty, pde) --- other cases are uninteresting
return (c, ResOper pty' pde')
- ResOverload tysts -> chIn "overloading" $ do
+ ResOverload os tysts -> chIn "overloading" $ do
tysts' <- mapM (uncurry $ flip check) tysts
let tysts2 = [(y,x) | (x,y) <- tysts']
--- this can only be a partial guarantee, since matching
--- with value type is only possible if expected type is given
checkUniq $
sort [t : map snd xs | (x,_) <- tysts2, Ok (xs,t) <- [typeFormCnc x]]
- return (c,ResOverload tysts2)
+ return (c,ResOverload os tysts2)
ResParam (Yes (pcs,_)) -> chIn "parameter type" $ do
---- mapM ((mapM (computeLType gr . snd)) . snd) pcs