summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-11 17:40:23 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-11 17:40:23 -0400
commite450d7a2d1bdde57d01f027b2e5b8080095f1380 (patch)
treed06f349e6f11bbf5b3e11db96b260fc032107b61 /Types.hs
parentdca9a15b797e30b095f306955310a40f2d1013b5 (diff)
downloadkeysafe-e450d7a2d1bdde57d01f027b2e5b8080095f1380.tar.gz
pluggable object storage layer
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Types.hs b/Types.hs
index 06bfbe2..20ec63e 100644
--- a/Types.hs
+++ b/Types.hs
@@ -34,7 +34,9 @@ newtype StorableObjectIdent = StorableObjectIdent B.ByteString
deriving (Show)
-- | A shard, with a known number (N of M).
-data Shard = Shard Int StorableObject
+data Shard = Shard ShardNum StorableObject
+
+type ShardNum = Int
-- | A password used to encrypt a key stored in keysafe.
newtype Password = Password B.ByteString