1
0
forked from GitHub/gf-core

type checking pattern bindings

This commit is contained in:
aarne
2006-01-13 13:47:15 +00:00
parent 621ca0c43d
commit 17449e42ba
2 changed files with 19 additions and 8 deletions

View File

@@ -105,9 +105,10 @@ tryMatch (p,t) = do
return (concat matches)
(PRep p1, ([],K s, [])) -> checks [
trym (foldr (const (PSeq p1)) (PString "") [1..n]) t' | n <- [0 .. length s]
]
trym (foldr (const (PSeq p1)) (PString "")
[1..n]) t' | n <- [0 .. length s]
] >>
return []
_ -> prtBad "no match in case expr for" t
isInConstantForm :: Term -> Bool