diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-13 02:14:28 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-13 02:14:28 +0400 |
commit | 6042f69d711cddc0bb42457e0d16d45e7b34e431 (patch) | |
tree | eebedcbd5cb46c5d033e89aae71b8ad5c3584a94 /bench/Main.hs | |
parent | 4e30588737415d59fa36aa7308c037bb8bd8e3d5 (diff) |
~ Fix wall suggestions.
Diffstat (limited to 'bench/Main.hs')
-rw-r--r-- | bench/Main.hs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bench/Main.hs b/bench/Main.hs index 0037c66b..ecfefcea 100644 --- a/bench/Main.hs +++ b/bench/Main.hs | |||
@@ -1,17 +1,12 @@ | |||
1 | {-# OPTIONS -fno-warn-orphans #-} | 1 | {-# OPTIONS -fno-warn-orphans #-} |
2 | module Main (main) where | 2 | module Main (main) where |
3 | 3 | ||
4 | import Control.Applicative | ||
5 | import Control.DeepSeq | 4 | import Control.DeepSeq |
6 | import Criterion.Main | 5 | import Criterion.Main |
7 | import Data.ByteString (ByteString) | ||
8 | import qualified Data.ByteString as B | ||
9 | import Data.Serialize | ||
10 | import Network | 6 | import Network |
11 | 7 | ||
12 | import Network.BitTorrent as BT | 8 | import Network.BitTorrent as BT |
13 | import Network.BitTorrent.Exchange.Protocol as BT | 9 | import Network.BitTorrent.Exchange.Protocol as BT |
14 | import Network.BitTorrent.Tracker.Protocol as BT | ||
15 | import Data.Bitfield as BT | 10 | import Data.Bitfield as BT |
16 | 11 | ||
17 | 12 | ||
@@ -34,12 +29,12 @@ instance NFData Message where | |||
34 | rnf (Cancel b) = rnf b | 29 | rnf (Cancel b) = rnf b |
35 | rnf (Port i) = rnf i | 30 | rnf (Port i) = rnf i |
36 | rnf _ = () -- other fields are forced by pattern matching | 31 | rnf _ = () -- other fields are forced by pattern matching |
37 | 32 | {- | |
38 | encodeMessages :: [Message] -> ByteString | 33 | encodeMessages :: [Message] -> ByteString |
39 | encodeMessages xs = runPut (mapM_ put xs) | 34 | encodeMessages xs = runPut (mapM_ put xs) |
40 | 35 | ||
41 | decodeMessages :: ByteString -> Either String [Message] | 36 | decodeMessages :: ByteString -> Either String [Message] |
42 | decodeMessages = runGet (many get) | 37 | decodeMessages = runGet (many get) |
43 | 38 | -} | |
44 | main :: IO () | 39 | main :: IO () |
45 | main = defaultMain [] | 40 | main = defaultMain [] |