From f60ac335e4e827fd242ab22539adb49f26e2c319 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 17 Aug 2016 14:28:33 -0400 Subject: add progress bars to restore also, restore actually works! --- ExpensiveHash.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ExpensiveHash.hs') 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 -- cgit v1.2.3