aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Crypto/Macaroon/Instances.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Crypto/Macaroon/Instances.hs')
-rw-r--r--test/Crypto/Macaroon/Instances.hs13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/Crypto/Macaroon/Instances.hs b/test/Crypto/Macaroon/Instances.hs
index c82bbd3..6955637 100644
--- a/test/Crypto/Macaroon/Instances.hs
+++ b/test/Crypto/Macaroon/Instances.hs
@@ -23,19 +23,6 @@ import Test.Tasty.QuickCheck
23 23
24import Crypto.Macaroon 24import Crypto.Macaroon
25 25
26
27-- | Adjust the size parameter, by transforming it with the given
28-- function.
29-- Copied over from QuickCheck 2.8
30scale :: (Int -> Int) -> Gen a -> Gen a
31scale f g = sized (\n -> resize (f n) g)
32
33
34-- | Generates a random subsequence of the given list.
35-- Copied over from QuickCheck 2.8
36sublistOf :: [a] -> Gen [a]
37sublistOf = filterM (\_ -> choose (False, True))
38
39newtype Url = Url { unUrl :: BS.ByteString } deriving (Show) 26newtype Url = Url { unUrl :: BS.ByteString } deriving (Show)
40 27
41instance Arbitrary Url where 28instance Arbitrary Url where