summaryrefslogtreecommitdiff
path: root/src/runtime/haskell
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-10-20 09:04:48 +0000
committerkrasimir <krasimir@chalmers.se>2010-10-20 09:04:48 +0000
commitd45b4ae426965b97c405bf36f7731fc3148d2464 (patch)
tree3af92ee6b08b05d77fe9917981a0ec0093a7aef1 /src/runtime/haskell
parent4ac1cf497033d9e32efddc96887679ddd8987860 (diff)
fixed typo which broke the parsing with -openclass
Diffstat (limited to 'src/runtime/haskell')
-rw-r--r--src/runtime/haskell/PGF/Forest.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/haskell/PGF/Forest.hs b/src/runtime/haskell/PGF/Forest.hs
index af8ccc5e4..0b481d0a2 100644
--- a/src/runtime/haskell/PGF/Forest.hs
+++ b/src/runtime/haskell/PGF/Forest.hs
@@ -135,7 +135,7 @@ getAbsTrees (Forest abs cnc forest root) arg@(PArg _ fid) ty dp =
x <- foldForest (\funid args trees ->
do let CncFun fn lins = cncfuns cnc ! funid
case isLindefCId fn of
- Just _ -> do arg <- go (Set.insert fid rec_) scope mb_tty arg
+ Just _ -> do arg <- go (Set.insert fid rec_) scope mb_tty (head args)
return (mkAbs arg)
Nothing -> do ty_fn <- lookupFunType fn
(e,tty0) <- foldM (\(e1,tty) arg -> goArg (Set.insert fid rec_) scope fid e1 arg tty)