From 455fca65bfb9ca4270fa7f89986d09ee62188d43 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 Jun 2012 11:58:08 -0400 Subject: [PATCH] layout --- Types/Backend.hs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Types/Backend.hs b/Types/Backend.hs index 5abb0896dc..97f7cef907 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 ++ "\" }"