git.haskell.org
/
ghc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea93a7
)
Remove incorrect comment
author
Simon Jakobi
<simon.jakobi@gmail.com>
Sat, 26 May 2018 23:03:58 +0000
(
01:03
+0200)
committer
Ben Gamari
<ben@smart-cactus.org>
Wed, 30 May 2018 14:02:09 +0000
(10:02 -0400)
Moving fingerprintByteString to GHC.Fingerprint would require
adding a dependency on bytestring to base.
compiler/utils/Fingerprint.hsc
patch
|
blob
|
history
diff --git
a/compiler/utils/Fingerprint.hsc
b/compiler/utils/Fingerprint.hsc
index
4c89ec0
..
01de554
100644
(file)
--- a/
compiler/utils/Fingerprint.hsc
+++ b/
compiler/utils/Fingerprint.hsc
@@
-42,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