]> git.immae.eu Git - github/fretlink/hmacaroons.git/commitdiff
Add newlines between Caveats in Macaroon's show
authorJulien Tanguy <julien.tanguy@jhome.fr>
Fri, 15 May 2015 16:17:13 +0000 (18:17 +0200)
committerJulien Tanguy <julien.tanguy@jhome.fr>
Fri, 15 May 2015 21:10:16 +0000 (23:10 +0200)
[ci skip]

src/Crypto/Macaroon/Internal.hs

index 116f5ede53de2bbbc73afa6ccacb0da178c5ec36..2f56512c511f45d8069482a9edf65931eced26fb 100644 (file)
@@ -58,7 +58,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)
                     ]