summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/BitTorrent/Tracker/Message.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Tracker/Message.hs b/src/Network/BitTorrent/Tracker/Message.hs
index e5d8b25a..3437dcf3 100644
--- a/src/Network/BitTorrent/Tracker/Message.hs
+++ b/src/Network/BitTorrent/Tracker/Message.hs
@@ -55,6 +55,7 @@ import Data.BEncode.BDict as BE
55import Data.ByteString as BS 55import Data.ByteString as BS
56import Data.ByteString.Char8 as BC 56import Data.ByteString.Char8 as BC
57import Data.Char as Char 57import Data.Char as Char
58import Data.Convertible
58import Data.List as L 59import Data.List as L
59import Data.Map as M 60import Data.Map as M
60import Data.Maybe 61import Data.Maybe
@@ -265,7 +266,7 @@ class FromParam a where
265 fromParam :: BS.ByteString -> Maybe a 266 fromParam :: BS.ByteString -> Maybe a
266 267
267instance FromParam InfoHash where 268instance FromParam InfoHash where
268 fromParam = byteStringToInfoHash 269 fromParam = either (const Nothing) pure . safeConvert
269 270
270instance FromParam PeerId where 271instance FromParam PeerId where
271 fromParam = byteStringToPeerId 272 fromParam = byteStringToPeerId