summaryrefslogtreecommitdiff
path: root/Types/Key.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-07-04 02:45:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-07-04 02:45:46 -0400
commit82819020608d663bc76cd08efa970473da64d092 (patch)
tree4d6547c8ac0ba63f6462c5b7d33cc55a9b78fa42 /Types/Key.hs
parent6b3a9cdaddec120f27e947e03ece5ee2ebde1d14 (diff)
layout
Diffstat (limited to 'Types/Key.hs')
-rw-r--r--Types/Key.hs24
1 files changed, 12 insertions, 12 deletions
diff --git a/Types/Key.hs b/Types/Key.hs
index 910819a14..a0c6d83bc 100644
--- a/Types/Key.hs
+++ b/Types/Key.hs
@@ -24,23 +24,23 @@ import Utility.QuickCheck
{- A Key has a unique name, which is derived from a particular backend,
- and may contain other optional metadata. -}
-data Key = Key {
- keyName :: String,
- keyBackendName :: String,
- keySize :: Maybe Integer,
- keyMtime :: Maybe EpochTime
-} deriving (Eq, Ord, Read, Show)
+data Key = Key
+ { keyName :: String
+ , keyBackendName :: String
+ , keySize :: Maybe Integer
+ , keyMtime :: Maybe EpochTime
+ } deriving (Eq, Ord, Read, Show)
{- A filename may be associated with a Key. -}
type AssociatedFile = Maybe FilePath
stubKey :: Key
-stubKey = Key {
- keyName = "",
- keyBackendName = "",
- keySize = Nothing,
- keyMtime = Nothing
-}
+stubKey = Key
+ { keyName = ""
+ , keyBackendName = ""
+ , keySize = Nothing
+ , keyMtime = Nothing
+ }
fieldSep :: Char
fieldSep = '-'