Copyright | (c) 2019 Galois Inc. |
---|---|
License | BSD3 |
Maintainer | cryptol@galois.com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Fingerprint
- fingerprint :: ByteString -> Fingerprint
- fingerprintFile :: FilePath -> IO (Maybe Fingerprint)
Documentation
data Fingerprint Source #
Instances
Eq Fingerprint Source # | |
Defined in Cryptol.ModuleSystem.Fingerprint (==) :: Fingerprint -> Fingerprint -> Bool # (/=) :: Fingerprint -> Fingerprint -> Bool # | |
Show Fingerprint Source # | |
Defined in Cryptol.ModuleSystem.Fingerprint showsPrec :: Int -> Fingerprint -> ShowS # show :: Fingerprint -> String # showList :: [Fingerprint] -> ShowS # | |
NFData Fingerprint Source # | |
Defined in Cryptol.ModuleSystem.Fingerprint rnf :: Fingerprint -> () # |
fingerprint :: ByteString -> Fingerprint Source #
Compute a fingerprint for a bytestring.
fingerprintFile :: FilePath -> IO (Maybe Fingerprint) Source #
Attempt to compute the fingerprint of the file at the given path.
Returns Nothing
in the case of an error.