summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2013-12-01 21:19:35 +0100
committerDaniel Gröber <dxld@darkboxed.org>2013-12-01 21:19:35 +0100
commit5dc7a19e42da1ee1cc3570ca74a55c32d7d243e0 (patch)
tree5472de9cdb8afd6b15752f796ece829bf9e0316a /src/Network
parentb83c5d53be21c03004ebb65d1dc9fe1f841a2a3c (diff)
Fix building with hashable >= 1.2
hashWithSalt is now the minimal implementation
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/BitTorrent/Core/PeerId.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Core/PeerId.hs b/src/Network/BitTorrent/Core/PeerId.hs
index 148f550d..1b4409a8 100644
--- a/src/Network/BitTorrent/Core/PeerId.hs
+++ b/src/Network/BitTorrent/Core/PeerId.hs
@@ -74,8 +74,8 @@ peerIdLen :: Int
74peerIdLen = 20 74peerIdLen = 20
75 75
76instance Hashable PeerId where 76instance Hashable PeerId where
77 hash = hash . getPeerId 77 hashWithSalt = hashUsing getPeerId
78 {-# INLINE hash #-} 78 {-# INLINE hashWithSalt #-}
79 79
80instance Serialize PeerId where 80instance Serialize PeerId where
81 put = putByteString . getPeerId 81 put = putByteString . getPeerId