summaryrefslogtreecommitdiffhomepage
path: root/Shard.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-17 15:03:33 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-17 15:03:33 -0400
commit78c71badb458f3709f4689641dbb9efd53d962cf (patch)
treec00689a389ad0598f136566c0acbf0efabf8da76 /Shard.hs
parentf60ac335e4e827fd242ab22539adb49f26e2c319 (diff)
downloadkeysafe-78c71badb458f3709f4689641dbb9efd53d962cf.tar.gz
progress display for storing
Diffstat (limited to 'Shard.hs')
-rw-r--r--Shard.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Shard.hs b/Shard.hs
index 11be850..da09188 100644
--- a/Shard.hs
+++ b/Shard.hs
@@ -19,6 +19,7 @@ import qualified Raaz.Hash.Sha256 as Raaz
import qualified Data.Text as T
import qualified Data.Text.Encoding as E
import Data.Monoid
+import Control.DeepSeq
data ShardIdents = ShardIdents
{ getIdents :: [StorableObjectIdent]
@@ -26,6 +27,9 @@ data ShardIdents = ShardIdents
, identsBruteForceCalc :: CostCalc BruteForceOp UnknownName
}
+instance NFData ShardIdents where
+ rnf = rnf . getIdents
+
instance HasCreationCost ShardIdents where
getCreationCost = identsCreationCost