1
0
forked from GitHub/gf-core

String pattern handling

This commit is contained in:
aarne
2004-03-23 12:06:12 +00:00
parent dc65a16767
commit 8f829331f6
5 changed files with 8 additions and 3 deletions

View File

@@ -6,8 +6,9 @@ import Ident
import PrGrammar (prt)
---- import PGrammar (pTrm)
-- predefined function definitions. AR 12/3/2003.
-- Type checker looks at signatures in predefined.gf
-- predefined function type signatures and definitions. AR 12/3/2003.
---- typPredefined :: Term -> Err Type
appPredefined :: Term -> Term
appPredefined t = case t of

View File

@@ -77,6 +77,7 @@ isInConstantForm trm = case trm of
Abs _ _ -> True
App c a -> isInConstantForm c && isInConstantForm a
R r -> all (isInConstantForm . snd . snd) r
K _ -> True
Alias _ _ t -> isInConstantForm t
_ -> False ---- isInArgVarForm trm