diff options
author | 2011-01-27 17:58:30 -0400 | |
---|---|---|
committer | 2011-01-27 17:58:30 -0400 | |
commit | 4f9336bb60ca4dc08ca271605de71415c98ec3ff (patch) | |
tree | a1fc60bb1b6133d8b8b966f2ea77349c0a9a6d62 /Command.hs | |
parent | 167523f09d48777f3a5931fdcbc21b9d363e0e6c (diff) |
idiom
Diffstat (limited to 'Command.hs')
-rw-r--r-- | Command.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command.hs b/Command.hs index bebbf3f1b..298234fa0 100644 --- a/Command.hs +++ b/Command.hs @@ -187,7 +187,7 @@ filterFiles l = do let regexp = compile (toregex exclude) [] return $ filter (notExcluded regexp) l' where - notState f = not $ isPrefixOf stateDir f + notState f = not $ stateDir `isPrefixOf` f notExcluded r f = case match r f [] of Nothing -> True Just _ -> False |