diff options
Diffstat (limited to 'libraries/base/GHC/Fingerprint.hs')
-rw-r--r-- | libraries/base/GHC/Fingerprint.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/base/GHC/Fingerprint.hs b/libraries/base/GHC/Fingerprint.hs index e8ab088b2f..1f712f5360 100644 --- a/libraries/base/GHC/Fingerprint.hs +++ b/libraries/base/GHC/Fingerprint.hs @@ -73,6 +73,8 @@ fingerprintString str = unsafeDupablePerformIO $ -- | Computes the hash of a given file. -- This function loops over the handle, running in constant memory. +-- +-- /Since: 4.7.0.0/ getFileHash :: FilePath -> IO Fingerprint getFileHash path = withBinaryFile path ReadMode $ \h -> do allocaBytes SIZEOF_STRUCT_MD5CONTEXT $ \pctxt -> do |