| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Git.Hash
Description
Documentation
A 20-byte "binary" SHA1 hash.
Constructors
| Sha1 | |
Fields | |
A 40-byte hex representation of a SHA1 hash.
Constructors
| Sha1Hex | |
Fields | |
validSha1Hex :: Sha1Hex -> Bool Source #
Ensure a Sha1Hex is valid (that is, is 40 bytes long and consists only of hex characters).
class HasSha1 a where Source #
A Hashable-alike for Sha1s.
Instances
| HasSha1 ByteString Source # | Direct SHA1 of a lazy bytestring. |
Defined in Data.Git.Hash Methods sha1 :: ByteString -> Sha1 Source # | |
| HasSha1 ByteString Source # | Direct SHA1 of a bytestring. |
Defined in Data.Git.Hash Methods sha1 :: ByteString -> Sha1 Source # | |
| HasSha1 Tag Source # | |
| HasSha1 Object Source # | |
| HasSha1 Commit Source # | |
| HasSha1 Tree Source # | |
| HasSha1 Blob Source # | |