ghc-8.10.4: The GHC API
Safe HaskellNone
LanguageHaskell2010

Fingerprint

Synopsis

Documentation

Re-exported from GHC.Fingerprint

data Fingerprint Source #

Constructors

Fingerprint !Word64 !Word64 

Instances

Instances details
Eq Fingerprint

Since: base-4.4.0.0

Instance details

Defined in GHC.Fingerprint.Type

Ord Fingerprint

Since: base-4.4.0.0

Instance details

Defined in GHC.Fingerprint.Type

Show Fingerprint

Since: base-4.7.0.0

Instance details

Defined in GHC.Fingerprint.Type

Storable Fingerprint

Since: base-4.4.0.0

Instance details

Defined in Foreign.Storable

Binary Fingerprint

Since: binary-0.7.6.0

Instance details

Defined in Data.Binary.Class

NFData Fingerprint

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: Fingerprint -> () Source #

Outputable Fingerprint # 
Instance details

Defined in Outputable

Binary Fingerprint # 
Instance details

Defined in Binary

getFileHash :: FilePath -> IO Fingerprint Source #

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

Since: base-4.7.0.0