diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-17 14:28:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-17 14:28:33 -0400 |
commit | f60ac335e4e827fd242ab22539adb49f26e2c319 (patch) | |
tree | 255e16e03210b9ccb6faf72b4afd29b7262f42d9 /ExpensiveHash.hs | |
parent | b474ab87ae45ed77f42eb41f658a55262bd92217 (diff) | |
download | keysafe-f60ac335e4e827fd242ab22539adb49f26e2c319.tar.gz |
add progress bars to restore
also, restore actually works!
Diffstat (limited to 'ExpensiveHash.hs')
-rw-r--r-- | ExpensiveHash.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ExpensiveHash.hs b/ExpensiveHash.hs index 9cf647f..ed7e859 100644 --- a/ExpensiveHash.hs +++ b/ExpensiveHash.hs @@ -28,6 +28,9 @@ import Data.Monoid data ExpensiveHash = ExpensiveHash (Cost CreationOp) T.Text deriving (Show) +instance HasCreationCost ExpensiveHash where + getCreationCost (ExpensiveHash c _) = c + data Salt t = Salt t expensiveHash :: Encodable t => ExpensiveHashTunable -> Salt t -> B.ByteString -> ExpensiveHash |