base-4.20.0.1: Core data structures and operations
Safe HaskellSafe
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 GHC.Internal.Foreign.Storable

Generic Fingerprint 
Instance details

Defined in GHC.Internal.Generics

Associated Types

type Rep Fingerprint

Since: base-4.15.0.0

Instance details

Defined in GHC.Internal.Generics

type Rep Fingerprint = D1 ('MetaData "Fingerprint" "GHC.Internal.Fingerprint.Type" "ghc-internal" 'False) (C1 ('MetaCons "Fingerprint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))
Show Fingerprint

Since: base-4.7.0.0

Instance details

Defined in GHC.Internal.Fingerprint.Type

Eq Fingerprint

Since: base-4.4.0.0

Instance details

Defined in GHC.Internal.Fingerprint.Type

Ord Fingerprint

Since: base-4.4.0.0

Instance details

Defined in GHC.Internal.Fingerprint.Type

type Rep Fingerprint

Since: base-4.15.0.0

Instance details

Defined in GHC.Internal.Generics

type Rep Fingerprint = D1 ('MetaData "Fingerprint" "GHC.Internal.Fingerprint.Type" "ghc-internal" 'False) (C1 ('MetaCons "Fingerprint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (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