X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FCrypto%2FMacaroon%2FInternal.hs;h=d6e80d3700d4e416858021b987b4bf72c00c1be4;hb=1fcdeab5264180025ac2e48db312c1fbd5ae22ca;hp=116f5ede53de2bbbc73afa6ccacb0da178c5ec36;hpb=8505c3d3b428f6a31cb2f9665ebefeb3ec117f7c;p=github%2Ffretlink%2Fhmacaroons.git diff --git a/src/Crypto/Macaroon/Internal.hs b/src/Crypto/Macaroon/Internal.hs index 116f5ed..d6e80d3 100644 --- a/src/Crypto/Macaroon/Internal.hs +++ b/src/Crypto/Macaroon/Internal.hs @@ -23,7 +23,11 @@ import qualified Data.ByteString.Char8 as B8 import Data.Hex import Data.List --- |Type alias for Macaroons and Caveat keys and identifiers + +-- |Type alias for Macaroons secret keys +type Secret = BS.ByteString + +-- |Type alias for Macaroons and Caveat and identifiers type Key = BS.ByteString -- |Type alias for Macaroons and Caveat locations @@ -58,7 +62,7 @@ instance Show Macaroon where show (MkMacaroon l i c s) = intercalate "\n" [ "location " ++ B8.unpack l , "identifier " ++ B8.unpack i - , concatMap show c + , intercalate "\n" (map show c) , "signature " ++ B8.unpack (hex s) ]