Dropping Show from PRK.
This commit is contained in:
parent
c0b0846232
commit
2b9dce2c8a
@ -30,10 +30,6 @@ import qualified Data.ByteString as BS
|
|||||||
data PRK a = PRK (HMAC a) | PRK_NoExpand ScrubbedBytes
|
data PRK a = PRK (HMAC a) | PRK_NoExpand ScrubbedBytes
|
||||||
deriving (Eq)
|
deriving (Eq)
|
||||||
|
|
||||||
instance Show (PRK a) where
|
|
||||||
show (PRK hm) = show (hmacGetDigest hm)
|
|
||||||
show (PRK_NoExpand sb) = show sb
|
|
||||||
|
|
||||||
toByteString :: PRK a -> BS.ByteString
|
toByteString :: PRK a -> BS.ByteString
|
||||||
toByteString (PRK hm) = B.convert hm
|
toByteString (PRK hm) = B.convert hm
|
||||||
toByteString (PRK_NoExpand sb) = B.convert sb
|
toByteString (PRK_NoExpand sb) = B.convert sb
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user