diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-07 00:35:59 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-07 00:35:59 -0400 |
commit | 2881564838b52658e4a2bf624b07ad5b54a0a42f (patch) | |
tree | e33f958aec192803c188441545fa6bfdcaa1d3e9 /Cost.hs | |
parent | 7890e78cc6e98fed07bc2ad471b527a2f1b1494f (diff) | |
download | keysafe-2881564838b52658e4a2bf624b07ad5b54a0a42f.tar.gz |
num for entropy
Diffstat (limited to 'Cost.hs')
-rw-r--r-- | Cost.hs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -58,6 +58,7 @@ type CostCalc op t = Entropy t -> Cost op -- | Number of bits of entropy newtype Entropy t = Entropy Int + deriving (Num) -- | Entropy can never go negative when subtracting bits from it. reduceEntropy :: Entropy t -> Int -> Entropy t |