ghc-8.0.2: The GHC API

Safe HaskellSafe
LanguageHaskell2010

Fingerprint

Synopsis

Documentation

data Fingerprint :: * Source #

Constructors

Fingerprint ~Word64 ~Word64 

Instances

Eq Fingerprint 
Ord Fingerprint 
Show Fingerprint 
Storable Fingerprint 
Binary Fingerprint

Since: 0.7.6.0

NFData Fingerprint

Since: 1.4.0.0

Methods

rnf :: Fingerprint -> () Source #

Outputable Fingerprint # 
Binary Fingerprint # 

getFileHash :: FilePath -> IO Fingerprint Source #

Computes the hash of a given file. This function loops over the handle, running in constant memory.

Since: 4.7.0.0