summaryrefslogtreecommitdiff
path: root/src/GF/Compile/CheckGrammar.hs
diff options
context:
space:
mode:
authoraarne <unknown>2004-03-23 12:06:12 +0000
committeraarne <unknown>2004-03-23 12:06:12 +0000
commit31836c0da9ba7a716ee0480e6219d771da4999fa (patch)
tree6df78cd648f2c1fc6587abd31fd1c3a3e34c72cc /src/GF/Compile/CheckGrammar.hs
parentc3796cf04ca77a8ded570678291fd65d5e17ed0f (diff)
String pattern handling
Diffstat (limited to 'src/GF/Compile/CheckGrammar.hs')
-rw-r--r--src/GF/Compile/CheckGrammar.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GF/Compile/CheckGrammar.hs b/src/GF/Compile/CheckGrammar.hs
index 46d75c744..6e8abc02d 100644
--- a/src/GF/Compile/CheckGrammar.hs
+++ b/src/GF/Compile/CheckGrammar.hs
@@ -416,6 +416,8 @@ inferLType gr trm = case trm of
PP _ _ ps -> True --- all isConstPatt ps
PR ps -> all (isConstPatt . snd) ps
PT _ p -> isConstPatt p
+ PString _ -> True
+ PInt _ -> True
_ -> False
inferPatt p = case p of