diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-19 13:51:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-19 13:51:30 -0400 |
commit | d36525e9745b90cc04abfeac6500ff646cb9c89b (patch) | |
tree | b497b310b7e9da8e00859a9eed616b36c297c07b /Types | |
parent | 50c063df069682bdac2af3b1746933da70a519b8 (diff) |
convert fsckKey to a Maybe
This way it's clear when a backend does not implement its own fsck checks.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Backend.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Types/Backend.hs b/Types/Backend.hs index 025293a90..1966d667f 100644 --- a/Types/Backend.hs +++ b/Types/Backend.hs @@ -16,8 +16,8 @@ data BackendA a = Backend { name :: String, -- converts a filename to a key getKey :: FilePath -> a (Maybe Key), - -- called during fsck to check a key - fsckKey :: Key -> a Bool + -- called during fsck to check a key, if the backend has its own checks + fsckKey :: Maybe (Key -> a Bool) } instance Show (BackendA a) where |