summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-17 14:28:33 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-17 14:28:33 -0400
commitf60ac335e4e827fd242ab22539adb49f26e2c319 (patch)
tree255e16e03210b9ccb6faf72b4afd29b7262f42d9 /Types.hs
parentb474ab87ae45ed77f42eb41f658a55262bd92217 (diff)
downloadkeysafe-f60ac335e4e827fd242ab22539adb49f26e2c319.tar.gz
add progress bars to restore
also, restore actually works!
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Types.hs b/Types.hs
index 5e06a74..28458d5 100644
--- a/Types.hs
+++ b/Types.hs
@@ -10,6 +10,7 @@ module Types where
import Types.Cost
import qualified Data.ByteString as B
import Data.String
+import Control.DeepSeq
-- | keysafe stores secret keys.
newtype SecretKey = SecretKey B.ByteString
@@ -30,7 +31,7 @@ newtype StorableObject = StorableObject { fromStorableObject :: B.ByteString }
-- | An identifier for a StorableObject
newtype StorableObjectIdent = StorableObjectIdent B.ByteString
- deriving (Show)
+ deriving (Show, NFData)
-- | A shard, with a known number (N of M).
data Shard = Shard ShardNum StorableObject