X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=test%2FCrypto%2FMacaroon%2FInstances.hs;h=6348c56cb49947cfb81382277a240f82ee2d8a6e;hb=86f3882318d323d1920ca1c7da6e816f0ed376da;hp=9c898578af1c4b4749b9f83335d9d6d961ec5c22;hpb=bf31e29028a4402ea0d2deefdb3b86efd526acd0;p=github%2Ffretlink%2Fhmacaroons.git diff --git a/test/Crypto/Macaroon/Instances.hs b/test/Crypto/Macaroon/Instances.hs index 9c89857..6348c56 100644 --- a/test/Crypto/Macaroon/Instances.hs +++ b/test/Crypto/Macaroon/Instances.hs @@ -32,10 +32,10 @@ instance Arbitrary Url where domain <- elements [".com",".net"] return . Url . B8.pack $ (protocol ++ name ++ domain) -newtype Secret = Secret { unSecret :: BS.ByteString } deriving (Show) +newtype BSSecret = BSSecret { unSecret :: BS.ByteString } deriving (Show) -instance Arbitrary Secret where - arbitrary = Secret . B8.pack <$> scale (*3) arbitrary +instance Arbitrary BSSecret where + arbitrary = BSSecret . B8.pack <$> scale (*3) arbitrary newtype Identifier = Identifier { unIdent :: BS.ByteString } deriving (Show)