summaryrefslogtreecommitdiff
path: root/tests/Encoding.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Encoding.hs')
-rw-r--r--tests/Encoding.hs4
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)
12import Test.Framework.Providers.QuickCheck2 (testProperty) 12import Test.Framework.Providers.QuickCheck2 (testProperty)
13import Test.QuickCheck 13import Test.QuickCheck
14 14
15
15import Network.URI 16import Network.URI
16import Network 17import Network
17 18
@@ -33,7 +34,8 @@ instance Arbitrary BlockIx where
33instance Arbitrary Block where 34instance Arbitrary Block where
34 arbitrary = Block <$> positive <*> positive <*> arbitrary 35 arbitrary = Block <$> positive <*> positive <*> arbitrary
35 36
36deriving instance Arbitrary Bitfield 37instance Arbitrary Bitfield where
38 arbitrary = mkBitfield <$> positive <*> arbitrary
37 39
38instance Arbitrary PortNumber where 40instance Arbitrary PortNumber where
39 arbitrary = fromIntegral <$> (arbitrary :: Gen Word16) 41 arbitrary = fromIntegral <$> (arbitrary :: Gen Word16)