summaryrefslogtreecommitdiff
path: root/Types
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-28 14:05:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-28 14:05:55 -0400
commit061fbfb37e02a9a9cb42396cce63d9b67d6a9c6e (patch)
tree6d8ea2522fac733bc20e85aa50b7320c77be5eec /Types
parent8fdc1813592d4ea72cd22c438b0357b9968fd867 (diff)
refactor
Diffstat (limited to 'Types')
-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