diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2013-12-20 18:05:24 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2013-12-20 18:05:24 +0100 |
commit | 7e1508679d428056553586dab65eacf7ccb97832 (patch) | |
tree | 22363d9f8698cbaa99f2ecbcdd9a3181c76509bc | |
parent | cda38f19ed9493070433067116ad720b78714dfd (diff) |
Fix ambigous occurence of lookAhead
-rw-r--r-- | src/Network/BitTorrent/Core/PeerId.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Core/PeerId.hs b/src/Network/BitTorrent/Core/PeerId.hs index f30308d4..cab30331 100644 --- a/src/Network/BitTorrent/Core/PeerId.hs +++ b/src/Network/BitTorrent/Core/PeerId.hs | |||
@@ -305,7 +305,7 @@ fingerprint pid = either (const def) id $ runGet getCI (getPeerId pid) | |||
305 | 'e' -> Fingerprint <$> getBitCometImpl <*> getBitCometVersion | 305 | 'e' -> Fingerprint <$> getBitCometImpl <*> getBitCometVersion |
306 | 'F' -> Fingerprint <$> getBitCometImpl <*> getBitCometVersion | 306 | 'F' -> Fingerprint <$> getBitCometImpl <*> getBitCometVersion |
307 | c -> do | 307 | c -> do |
308 | c1 <- w2c <$> lookAhead getWord8 | 308 | c1 <- w2c <$> S.lookAhead getWord8 |
309 | if c1 == 'P' | 309 | if c1 == 'P' |
310 | then do | 310 | then do |
311 | _ <- getWord8 | 311 | _ <- getWord8 |
@@ -324,7 +324,7 @@ fingerprint pid = either (const def) id $ runGet getCI (getPeerId pid) | |||
324 | 324 | ||
325 | getBitCometImpl = do | 325 | getBitCometImpl = do |
326 | bs <- getByteString 3 | 326 | bs <- getByteString 3 |
327 | lookAhead $ do | 327 | S.lookAhead $ do |
328 | _ <- getByteString 2 | 328 | _ <- getByteString 2 |
329 | lr <- getByteString 4 | 329 | lr <- getByteString 4 |
330 | return $ | 330 | return $ |