summaryrefslogtreecommitdiff
path: root/src/compiler/GF
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-09-17 22:02:36 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-09-17 22:02:36 +0000
commite34d5b04092a001eee3daff696862634a891b935 (patch)
treed3fd0bb7cdab8c4fdc1fd08ffb36a0aa5ec290e5 /src/compiler/GF
parenta5f81ff81ca256c7a260a7c6473c8c4dee0e6ddf (diff)
appForm now skips over Typed expressions
Diffstat (limited to 'src/compiler/GF')
-rw-r--r--src/compiler/GF/Grammar/Macros.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/GF/Grammar/Macros.hs b/src/compiler/GF/Grammar/Macros.hs
index b623aaa2b..dde1201d8 100644
--- a/src/compiler/GF/Grammar/Macros.hs
+++ b/src/compiler/GF/Grammar/Macros.hs
@@ -116,8 +116,9 @@ termFormCnc t = case t of
appForm :: Term -> (Term, [Term])
appForm t = case t of
- App c a -> (fun, args ++ [a]) where (fun, args) = appForm c
- _ -> (t,[])
+ App c a -> (fun, args ++ [a]) where (fun, args) = appForm c
+ Typed t _ -> appForm t
+ _ -> (t,[])
mkProdSimple :: Context -> Term -> Term
mkProdSimple c t = mkProd c t []