diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-18 14:51:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-18 14:51:55 -0400 |
commit | 8ce515ffe432e8a892012d143b363926b18ce9e3 (patch) | |
tree | 420c16527dac97e7529d38eb69382d0f90217461 /Types/FileMatcher.hs | |
parent | a135bbd5a25b939d7f9ea588f049b6deb7fb542a (diff) |
improve matcher data type to allow matching Keys, instead of just files (no behavior changes)
Diffstat (limited to 'Types/FileMatcher.hs')
-rw-r--r-- | Types/FileMatcher.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Types/FileMatcher.hs b/Types/FileMatcher.hs index fc442b6041..e2d4eadc1b 100644 --- a/Types/FileMatcher.hs +++ b/Types/FileMatcher.hs @@ -7,6 +7,12 @@ module Types.FileMatcher where +import Types.Key (Key) + +data MatchInfo + = MatchingFile FileInfo + | MatchingKey Key + data FileInfo = FileInfo { relFile :: FilePath -- may be relative to cwd , matchFile :: FilePath -- filepath to match on; may be relative to top |