Add note about Digest implementing ByteArrayAccess
This commit is contained in:
parent
007f69c557
commit
c6c715f465
@ -62,6 +62,14 @@ newtype Context a = Context Bytes
|
||||
deriving (ByteArrayAccess,NFData)
|
||||
|
||||
-- | Represent a digest for a given hash algorithm.
|
||||
--
|
||||
-- This type is an instance of 'ByteArrayAccess' from package
|
||||
-- <https://hackage.haskell.org/package/memory memory>.
|
||||
-- Module "Data.ByteArray" provides many primitives to work with those values
|
||||
-- including conversion to other types.
|
||||
--
|
||||
-- Creating a digest from a bytearray is also possible with function
|
||||
-- 'Crypto.Hash.digestFromByteString'.
|
||||
newtype Digest a = Digest (F.UArray Word8)
|
||||
deriving (Eq,Ord,ByteArrayAccess)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user