diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-08-16 08:50:08 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-08-16 08:50:08 +0400 |
commit | 6bb92a610c4874ea3fa37fb15cd55c48f219d6ed (patch) | |
tree | e9362f06242d11a55cade4d8705155c6d388a85e /bench/Main.hs | |
parent | 1c19636c20e918388ef7f16faa8c6fb617d917d8 (diff) |
~ Remove torrent-content modules.
Diffstat (limited to 'bench/Main.hs')
-rw-r--r-- | bench/Main.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bench/Main.hs b/bench/Main.hs index ecfefcea..a7b937ff 100644 --- a/bench/Main.hs +++ b/bench/Main.hs | |||
@@ -5,9 +5,9 @@ import Control.DeepSeq | |||
5 | import Criterion.Main | 5 | import Criterion.Main |
6 | import Network | 6 | import Network |
7 | 7 | ||
8 | import Network.BitTorrent as BT | ||
9 | import Network.BitTorrent.Exchange.Protocol as BT | 8 | import Network.BitTorrent.Exchange.Protocol as BT |
10 | import Data.Bitfield as BT | 9 | import Data.Torrent.Block as BT |
10 | import Data.Torrent.Bitfield as BT | ||
11 | 11 | ||
12 | 12 | ||
13 | instance NFData PortNumber where | 13 | instance NFData PortNumber where |
@@ -29,6 +29,7 @@ instance NFData Message where | |||
29 | rnf (Cancel b) = rnf b | 29 | rnf (Cancel b) = rnf b |
30 | rnf (Port i) = rnf i | 30 | rnf (Port i) = rnf i |
31 | rnf _ = () -- other fields are forced by pattern matching | 31 | rnf _ = () -- other fields are forced by pattern matching |
32 | |||
32 | {- | 33 | {- |
33 | encodeMessages :: [Message] -> ByteString | 34 | encodeMessages :: [Message] -> ByteString |
34 | encodeMessages xs = runPut (mapM_ put xs) | 35 | encodeMessages xs = runPut (mapM_ put xs) |
@@ -36,5 +37,6 @@ encodeMessages xs = runPut (mapM_ put xs) | |||
36 | decodeMessages :: ByteString -> Either String [Message] | 37 | decodeMessages :: ByteString -> Either String [Message] |
37 | decodeMessages = runGet (many get) | 38 | decodeMessages = runGet (many get) |
38 | -} | 39 | -} |
40 | |||
39 | main :: IO () | 41 | main :: IO () |
40 | main = defaultMain [] | 42 | main = defaultMain [] |