1
0
forked from GitHub/gf-core

rename GF.Grammar.Predef.isPredefCat to isLiteralCat

This commit is contained in:
krasimir
2010-06-17 15:08:12 +00:00
parent 183c878173
commit d8b049fdf8
5 changed files with 10 additions and 10 deletions

View File

@@ -161,7 +161,7 @@ checkInferExp th tenv@(k,_,_) e typ = do
inferExp :: Theory -> TCEnv -> Exp -> Err (AExp, Val, [(Val,Val)])
inferExp th tenv@(k,rho,gamma) e = case e of
Vr x -> mkAnnot (AVr x) $ noConstr $ lookupVar gamma x
Q (m,c) | m == cPredefAbs && isPredefCat c
Q (m,c) | m == cPredefAbs && isLiteralCat c
-> return (ACn (m,c) vType, vType, [])
| otherwise -> mkAnnot (ACn (m,c)) $ noConstr $ lookupConst th (m,c)
QC c -> mkAnnot (ACn c) $ noConstr $ lookupConst th c ----