diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:03:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:03:33 -0400 |
commit | 78c71badb458f3709f4689641dbb9efd53d962cf (patch) | |
tree | c00689a389ad0598f136566c0acbf0efabf8da76 /Shard.hs | |
parent | f60ac335e4e827fd242ab22539adb49f26e2c319 (diff) | |
download | keysafe-78c71badb458f3709f4689641dbb9efd53d962cf.tar.gz |
progress display for storing
Diffstat (limited to 'Shard.hs')
-rw-r--r-- | Shard.hs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |