ghc-8.2.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

Fingerprint

Contents

Synopsis

Documentation

Re-exported from GHC.Fingerprint

data Fingerprint :: * #

Constructors

Fingerprint !Word64 !Word64 

Instances

Eq Fingerprint 
Ord Fingerprint 
Show Fingerprint

Since: 4.7.0.0

Storable Fingerprint

Since: 4.4.0.0

Binary Fingerprint

Since: 0.7.6.0

NFData Fingerprint

Since: 1.4.0.0

Methods

rnf :: Fingerprint -> () #

Outputable Fingerprint Source # 
Binary Fingerprint Source # 

getFileHash :: FilePath -> IO Fingerprint #

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

Since: 4.7.0.0