summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-06 11:58:08 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-06 11:58:08 -0400
commit455fca65bfb9ca4270fa7f89986d09ee62188d43 (patch)
tree36e53862bc4fae220cadc79659eefd1476306809
parentf596084a599fb363dcbb425dce7c4ca46bb56ca0 (diff)
layout
-rw-r--r--Types/Backend.hs13
1 files changed, 5 insertions, 8 deletions
diff --git a/Types/Backend.hs b/Types/Backend.hs
index 5abb0896d..97f7cef90 100644
--- a/Types/Backend.hs
+++ b/Types/Backend.hs
@@ -18,14 +18,11 @@ data KeySource = KeySource
, contentLocation :: FilePath
}
-data BackendA a = Backend {
- -- name of this backend
- name :: String,
- -- gets the key to use for a given content
- getKey :: KeySource -> a (Maybe Key),
- -- called during fsck to check a key, if the backend has its own checks
- fsckKey :: Maybe (Key -> FilePath -> a Bool)
-}
+data BackendA a = Backend
+ { name :: String
+ , getKey :: KeySource -> a (Maybe Key)
+ , fsckKey :: Maybe (Key -> FilePath -> a Bool)
+ }
instance Show (BackendA a) where
show backend = "Backend { name =\"" ++ name backend ++ "\" }"