diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-02 16:55:14 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-02 16:55:14 +0400 |
commit | ff004146437723fb565cf693e71c50b35aa96abf (patch) | |
tree | 81a2a1ff22e3188e74f21829c0cbf675e41f442f /tests/Network | |
parent | 1adebd3cc19e33e4b3eb6600c4c4208f38b4784d (diff) |
Fix build failure
Diffstat (limited to 'tests/Network')
-rw-r--r-- | tests/Network/BitTorrent/Exchange/BlockSpec.hs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/Network/BitTorrent/Exchange/BlockSpec.hs b/tests/Network/BitTorrent/Exchange/BlockSpec.hs index f4301452..81ba09b8 100644 --- a/tests/Network/BitTorrent/Exchange/BlockSpec.hs +++ b/tests/Network/BitTorrent/Exchange/BlockSpec.hs | |||
@@ -4,7 +4,7 @@ import Data.Maybe | |||
4 | import Test.Hspec | 4 | import Test.Hspec |
5 | import Test.QuickCheck | 5 | import Test.QuickCheck |
6 | 6 | ||
7 | import Network.BitTorrent.Exchange.Block | 7 | import Network.BitTorrent.Exchange.Block as Block |
8 | 8 | ||
9 | 9 | ||
10 | instance Arbitrary a => Arbitrary (Block a) where | 10 | instance Arbitrary a => Arbitrary (Block a) where |
@@ -14,10 +14,7 @@ instance Arbitrary BlockIx where | |||
14 | arbitrary = BlockIx <$> arbitrary <*> arbitrary <*> arbitrary | 14 | arbitrary = BlockIx <$> arbitrary <*> arbitrary <*> arbitrary |
15 | 15 | ||
16 | instance Arbitrary Bucket where | 16 | instance Arbitrary Bucket where |
17 | arbitrary = error "arbitrary: block bucket" | 17 | arbitrary = Block.fromList <$> arbitrary <*> arbitrary |
18 | |||
19 | instance Show Bucket where | ||
20 | show = error "show: bucket" | ||
21 | 18 | ||
22 | spec :: Spec | 19 | spec :: Spec |
23 | spec = do | 20 | spec = do |