summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-13 02:14:28 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-13 02:14:28 +0400
commit6042f69d711cddc0bb42457e0d16d45e7b34e431 (patch)
treeeebedcbd5cb46c5d033e89aae71b8ad5c3584a94 /bench
parent4e30588737415d59fa36aa7308c037bb8bd8e3d5 (diff)
~ Fix wall suggestions.
Diffstat (limited to 'bench')
-rw-r--r--bench/Main.hs9
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 #-}
2module Main (main) where 2module Main (main) where
3 3
4import Control.Applicative
5import Control.DeepSeq 4import Control.DeepSeq
6import Criterion.Main 5import Criterion.Main
7import Data.ByteString (ByteString)
8import qualified Data.ByteString as B
9import Data.Serialize
10import Network 6import Network
11 7
12import Network.BitTorrent as BT 8import Network.BitTorrent as BT
13import Network.BitTorrent.Exchange.Protocol as BT 9import Network.BitTorrent.Exchange.Protocol as BT
14import Network.BitTorrent.Tracker.Protocol as BT
15import Data.Bitfield as BT 10import 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{-
38encodeMessages :: [Message] -> ByteString 33encodeMessages :: [Message] -> ByteString
39encodeMessages xs = runPut (mapM_ put xs) 34encodeMessages xs = runPut (mapM_ put xs)
40 35
41decodeMessages :: ByteString -> Either String [Message] 36decodeMessages :: ByteString -> Either String [Message]
42decodeMessages = runGet (many get) 37decodeMessages = runGet (many get)
43 38-}
44main :: IO () 39main :: IO ()
45main = defaultMain [] 40main = defaultMain []