aboutsummaryrefslogtreecommitdiff
path: root/btls.cabal
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-03-23 18:34:42 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-03-23 18:34:42 -0400
commit0ed87caa3481cbb6f8c2e809e5ec7df6f6245406 (patch)
treee7267e4b7996920577aa556ff7a67a312a271216 /btls.cabal
parent3e898da300395bc3e63780b8d27a97fd4a9c375c (diff)
Data.Digest: Reify hash algorithms
Eliminate the functional interface for hashing. Hashing now occurs exclusively through the `hash` function, which accepts a `Data.Digest.Algorithm`. This makes btls somewhat less extensible, but it’s the most elegant way to support HMACs.
Diffstat (limited to 'btls.cabal')
-rw-r--r--btls.cabal6
1 files changed, 2 insertions, 4 deletions
diff --git a/btls.cabal b/btls.cabal
index 9844a5a..63af3db 100644
--- a/btls.cabal
+++ b/btls.cabal
@@ -33,9 +33,6 @@ library
-Wno-safe -Wno-unsafe
-optl-Wl,-z,relro -optl-Wl,-z,now -optl-Wl,-s
exposed-modules: Data.Digest
- , Data.Digest.Md5
- , Data.Digest.Sha1
- , Data.Digest.Sha2
other-modules: Data.Digest.Internal
-- Use special names for the BoringSSL libraries to avoid accidentally pulling
-- in OpenSSL.
@@ -57,7 +54,8 @@ test-suite tests
-Wno-safe -Wno-unsafe
-optl-Wl,-z,relro -optl-Wl,-z,now -optl-Wl,-s
main-is: Tests.hs
- other-modules: Data.Digest.HashTests
+ other-modules: Data.DigestTests
+ , Data.Digest.HashTests
, Data.Digest.Md5Tests
, Data.Digest.Sha1Tests
, Data.Digest.Sha2Tests