aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-09-21 16:40:18 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-09-21 16:40:18 -0400
commita643f96bd1b8048a08277f7992ca7d43ee2423c3 (patch)
tree3f01075533614aab8a89c7cef4fba93f1ec0332f /src
parent021932a9ee2a81435b0a341030f68730dd9abd3b (diff)
Rewrite tests for readability
Replace tables of tuples with simple function calls, and normalize argument order to have outputs to the right of inputs. Also factor out some common patterns.
Diffstat (limited to 'src')
-rw-r--r--src/Data/Digest.hs2
-rw-r--r--src/Data/HMAC.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Data/Digest.hs b/src/Data/Digest.hs
index 594fef1..3bc53b7 100644
--- a/src/Data/Digest.hs
+++ b/src/Data/Digest.hs
@@ -22,7 +22,7 @@
-}
module Data.Digest
( -- * Computing digests
- Digest
+ Digest(Digest)
, hash
-- * Digest algorithms
diff --git a/src/Data/HMAC.hs b/src/Data/HMAC.hs
index d8c36f1..0e5a67f 100644
--- a/src/Data/HMAC.hs
+++ b/src/Data/HMAC.hs
@@ -23,7 +23,7 @@
-}
module Data.HMAC
( -- * Computing HMACs
- HMAC
+ HMAC(HMAC)
, hmac
-- * Cryptographic hash algorithms