documenting regular patterns

This commit is contained in:
aarne
2006-01-07 15:42:13 +00:00
parent 69e1668f16
commit 6b6bf9bce9
2 changed files with 44 additions and 16 deletions

View File

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