aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Crypto/Macaroon/Serializer
diff options
context:
space:
mode:
authorJulien Tanguy <julien.tanguy@jhome.fr>2015-04-14 18:18:26 +0200
committerJulien Tanguy <julien.tanguy@jhome.fr>2015-04-14 18:18:26 +0200
commitb1f77d7e6dcf03dd20c36e1a10429e1b2b9900b1 (patch)
tree0ce2d7d6164de6c254ec4022072430045109a30f /src/Crypto/Macaroon/Serializer
parent26d38f73993db56811d198a3e0b5c710722dd472 (diff)
downloadhmacaroons-b1f77d7e6dcf03dd20c36e1a10429e1b2b9900b1.tar.gz
hmacaroons-b1f77d7e6dcf03dd20c36e1a10429e1b2b9900b1.tar.zst
hmacaroons-b1f77d7e6dcf03dd20c36e1a10429e1b2b9900b1.zip
Refactor tests
Diffstat (limited to 'src/Crypto/Macaroon/Serializer')
-rw-r--r--src/Crypto/Macaroon/Serializer/Base64.hs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Crypto/Macaroon/Serializer/Base64.hs b/src/Crypto/Macaroon/Serializer/Base64.hs
index 6fc8fcb..f6527c2 100644
--- a/src/Crypto/Macaroon/Serializer/Base64.hs
+++ b/src/Crypto/Macaroon/Serializer/Base64.hs
@@ -16,22 +16,22 @@ module Crypto.Macaroon.Serializer.Base64 (
16 , deserialize 16 , deserialize
17 ) where 17 ) where
18 18
19import Control.Applicative 19import Control.Applicative
20import Control.Monad 20import Control.Monad
21import qualified Data.ByteString as BS 21import Crypto.Macaroon.Internal
22import qualified Data.ByteString.Base64.URL as B64 22import Data.Attoparsec.ByteString
23import qualified Data.ByteString.Char8 as B8
24import Data.Attoparsec.ByteString
25import qualified Data.Attoparsec.ByteString.Char8 as A8 23import qualified Data.Attoparsec.ByteString.Char8 as A8
26import Data.Bits 24import Data.Bits
25import qualified Data.ByteString as BS
26import qualified Data.ByteString.Base64.URL as B64
27import qualified Data.ByteString.Char8 as B8
27import Data.Char 28import Data.Char
28import Data.Hex 29import Data.Hex
29import Data.Int 30import Data.Int
30import Data.List 31import Data.List
31import Data.Maybe 32import Data.Maybe
32import Data.Word
33import Data.Serialize 33import Data.Serialize
34import Crypto.Macaroon.Internal 34import Data.Word
35 35
36 36
37-- | Serialize a macaroon in an URL-safe Base64 encoding 37-- | Serialize a macaroon in an URL-safe Base64 encoding