summaryrefslogtreecommitdiff
path: root/src/crypto/reflibs/Crypto/Hash.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-10-27 22:08:47 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-11-06 21:06:49 +0100
commite0762612e95b0816721165c5aba6189809fcde58 (patch)
tree57a2b7eed322086e6e19bfa652798d3dceceb6f6 /src/crypto/reflibs/Crypto/Hash.hs
parent0bb8daa7da52240a971a4ce83d97cfb62971ea78 (diff)
ByteString conversion classes
Diffstat (limited to 'src/crypto/reflibs/Crypto/Hash.hs')
-rw-r--r--src/crypto/reflibs/Crypto/Hash.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/reflibs/Crypto/Hash.hs b/src/crypto/reflibs/Crypto/Hash.hs
index 36308f9..4d83e5d 100644
--- a/src/crypto/reflibs/Crypto/Hash.hs
+++ b/src/crypto/reflibs/Crypto/Hash.hs
@@ -26,9 +26,11 @@ import Foreign.Storable
import System.IO.Unsafe
+import ConvertByteString
+
newtype Digest a = Digest ByteString
- deriving (Eq, Ord, NFData, ByteArrayAccess)
+ deriving (Eq, Ord, NFData, ByteArrayAccess, ToByteString)
data Context a = Context (ForeignPtr Blake2bContext)