documenting regular patterns

This commit is contained in:
aarne
2006-01-07 15:42:13 +00:00
parent d133e0353c
commit 00ea4e3dcd
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