diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2013-12-01 21:19:35 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2013-12-01 21:19:35 +0100 |
commit | 5dc7a19e42da1ee1cc3570ca74a55c32d7d243e0 (patch) | |
tree | 5472de9cdb8afd6b15752f796ece829bf9e0316a /src/Data/Torrent | |
parent | b83c5d53be21c03004ebb65d1dc9fe1f841a2a3c (diff) |
Fix building with hashable >= 1.2
hashWithSalt is now the minimal implementation
Diffstat (limited to 'src/Data/Torrent')
-rw-r--r-- | src/Data/Torrent/InfoHash.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Data/Torrent/InfoHash.hs b/src/Data/Torrent/InfoHash.hs index d840ac87..4d49fcb7 100644 --- a/src/Data/Torrent/InfoHash.hs +++ b/src/Data/Torrent/InfoHash.hs | |||
@@ -70,8 +70,8 @@ instance Default InfoHash where | |||
70 | 70 | ||
71 | -- | Hash raw bytes. (no encoding) | 71 | -- | Hash raw bytes. (no encoding) |
72 | instance Hashable InfoHash where | 72 | instance Hashable InfoHash where |
73 | hash (InfoHash ih) = Hashable.hash ih | 73 | hashWithSalt s (InfoHash ih) = hashWithSalt s ih |
74 | {-# INLINE hash #-} | 74 | {-# INLINE hashWithSalt #-} |
75 | 75 | ||
76 | -- | Convert to\/from raw bencoded string. (no encoding) | 76 | -- | Convert to\/from raw bencoded string. (no encoding) |
77 | instance BEncode InfoHash where | 77 | instance BEncode InfoHash where |