Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 52daffe

Browse files
committed
Fix minor wibbles
1 parent 2de828c commit 52daffe

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/bench/Bench/Pos/Diffusion/BlockDownload.hs

+1-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Bench.Pos.Diffusion.BlockDownload where
1515
import Universum
1616

1717
import Control.Concurrent.STM (readTBQueue)
18-
import Control.DeepSeq (NFData, force)
18+
import Control.DeepSeq (force)
1919
import Control.Monad.IO.Class (liftIO)
2020
import qualified Criterion
2121
import qualified Criterion.Main as Criterion
@@ -287,14 +287,6 @@ runBlockDownloadBenchmark :: Criterion.Mode -> NodeId -> (Int -> IO ()) -> Diffu
287287
runBlockDownloadBenchmark mode serverAddress setStreamIORef client =
288288
Criterion.runMode mode $ blockDownloadBenchmarks serverAddress setStreamIORef client
289289

290-
-- It's surprisingly cumbersome to give a non-orphan 'NFData' instance on
291-
-- 'BlockHeader', since we have that 'Blockchain' typeclass with a bunch of
292-
-- data families. 'BHeaderHash GenesisBlockchain', for instance, must have
293-
-- an 'NFData' instance, but in that module we don't yet know that this is
294-
-- in fact 'HeaderHash' ~ 'Crypto.Digest Blake2b_256'.
295-
-- Anyway, there's a whole saga of pain caused by that silly abstraction.
296-
instance NFData BlockHeader
297-
298290
runBenchmark :: IO ()
299291
runBenchmark = do
300292
{-

lib/src/Pos/Binary.hs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Pos.Binary.Class
99
import Pos.Binary.Communication ()
1010
import Pos.Binary.Core ()
1111
import Pos.Binary.Delegation ()
12-
import Pos.Binary.Merkle ()
1312
import Pos.Binary.Ssc ()
1413
import Pos.Binary.Txp ()
1514
import Pos.Binary.Update ()

0 commit comments

Comments
 (0)