diff options
Diffstat (limited to 'test/Crypto/Macaroon/Instances.hs')
-rw-r--r-- | test/Crypto/Macaroon/Instances.hs | 13 |
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 | ||
24 | import Crypto.Macaroon | 24 | import 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 | ||
30 | scale :: (Int -> Int) -> Gen a -> Gen a | ||
31 | scale 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 | ||
36 | sublistOf :: [a] -> Gen [a] | ||
37 | sublistOf = filterM (\_ -> choose (False, True)) | ||
38 | |||
39 | newtype Url = Url { unUrl :: BS.ByteString } deriving (Show) | 26 | newtype Url = Url { unUrl :: BS.ByteString } deriving (Show) |
40 | 27 | ||
41 | instance Arbitrary Url where | 28 | instance Arbitrary Url where |