diff options
Diffstat (limited to 'compiler/utils/Fingerprint.hsc')
-rw-r--r-- | compiler/utils/Fingerprint.hsc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/utils/Fingerprint.hsc b/compiler/utils/Fingerprint.hsc index d4cee0e10b..01de554869 100644 --- a/compiler/utils/Fingerprint.hsc +++ b/compiler/utils/Fingerprint.hsc @@ -24,6 +24,8 @@ module Fingerprint ( #include "md5.h" ##include "HsVersions.h" +import GhcPrelude + import Foreign import GHC.IO import Numeric ( readHex ) @@ -40,7 +42,6 @@ readHexFingerprint s = Fingerprint w1 w2 [(w1,"")] = readHex s1 [(w2,"")] = readHex (take 16 s2) --- this can move to GHC.Fingerprint in GHC 8.6 fingerprintByteString :: BS.ByteString -> Fingerprint fingerprintByteString bs = unsafeDupablePerformIO $ BS.unsafeUseAsCStringLen bs $ \(ptr, len) -> fingerprintData (castPtr ptr) len |