ghc-8.2.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

Fingerprint

Contents

Synopsis

Documentation

Re-exported from GHC.Fingerprint

data Fingerprint :: * Source #

Constructors

Fingerprint !Word64 !Word64 

Instances

Eq Fingerprint 
Ord Fingerprint 
Show Fingerprint

Since: 4.7.0.0

Storable Fingerprint

Since: 4.4.0.0

NFData Fingerprint

Since: 1.4.0.0

Methods

rnf :: Fingerprint -> () Source #

Binary Fingerprint

Since: 0.7.6.0

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