summaryrefslogtreecommitdiff
path: root/Types/Limit.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Types/Limit.hs')
-rw-r--r--Types/Limit.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Types/Limit.hs b/Types/Limit.hs
new file mode 100644
index 000000000..9d981242d
--- /dev/null
+++ b/Types/Limit.hs
@@ -0,0 +1,19 @@
+{- types for limits
+ -
+ - Copyright 2013 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+{-# LANGUAGE CPP #-}
+
+module Types.Limit where
+
+import Common.Annex
+import Types.FileMatcher
+
+import qualified Data.Set as S
+
+type MatchFiles = AssumeNotPresent -> FileInfo -> Annex Bool
+type MkLimit = String -> Either String MatchFiles
+type AssumeNotPresent = S.Set UUID