diff options
Diffstat (limited to 'tests/Encoding.hs')
-rw-r--r-- | tests/Encoding.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Encoding.hs b/tests/Encoding.hs index d43045bc..0b678a25 100644 --- a/tests/Encoding.hs +++ b/tests/Encoding.hs | |||
@@ -12,6 +12,7 @@ import Test.Framework (Test) | |||
12 | import Test.Framework.Providers.QuickCheck2 (testProperty) | 12 | import Test.Framework.Providers.QuickCheck2 (testProperty) |
13 | import Test.QuickCheck | 13 | import Test.QuickCheck |
14 | 14 | ||
15 | |||
15 | import Network.URI | 16 | import Network.URI |
16 | import Network | 17 | import Network |
17 | 18 | ||
@@ -33,7 +34,8 @@ instance Arbitrary BlockIx where | |||
33 | instance Arbitrary Block where | 34 | instance Arbitrary Block where |
34 | arbitrary = Block <$> positive <*> positive <*> arbitrary | 35 | arbitrary = Block <$> positive <*> positive <*> arbitrary |
35 | 36 | ||
36 | deriving instance Arbitrary Bitfield | 37 | instance Arbitrary Bitfield where |
38 | arbitrary = mkBitfield <$> positive <*> arbitrary | ||
37 | 39 | ||
38 | instance Arbitrary PortNumber where | 40 | instance Arbitrary PortNumber where |
39 | arbitrary = fromIntegral <$> (arbitrary :: Gen Word16) | 41 | arbitrary = fromIntegral <$> (arbitrary :: Gen Word16) |