base-4.16.0.0: Basic libraries
Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Fingerprint

Synopsis

Documentation

data Fingerprint Source #

Constructors

Fingerprint !Word64 !Word64 

Instances

Instances details
Storable Fingerprint #

Since: base-4.4.0.0

Instance details

Defined in Foreign.Storable

Generic Fingerprint # 
Instance details

Defined in GHC.Generics

Associated Types

type Rep Fingerprint :: Type -> Type Source #

Show Fingerprint #

Since: base-4.7.0.0

Instance details

Defined in GHC.Fingerprint.Type

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

type Rep Fingerprint #

Since: base-4.15.0.0

Instance details

Defined in GHC.Generics

type Rep Fingerprint = D1 ('MetaData "Fingerprint" "GHC.Fingerprint.Type" "base" 'False) (C1 ('MetaCons "Fingerprint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)))

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