aboutsummaryrefslogtreecommitdiff
path: root/Crypto.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-12 11:32:06 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-12 11:32:06 -0400
commit942d8f72984377c4e69d7c55877621d434e5d687 (patch)
treeda1f205c66d57a4a88c727af382c4d6e09c2e881 /Crypto.hs
parent85f0992c0378aad442da5dbbd5deadffe33f77e1 (diff)
hlint
Diffstat (limited to 'Crypto.hs')
-rw-r--r--Crypto.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Crypto.hs b/Crypto.hs
index 58c0e6d00..8941f7637 100644
--- a/Crypto.hs
+++ b/Crypto.hs
@@ -138,7 +138,7 @@ withDecryptedContent = pass withDecryptedHandle
pass :: (Cipher -> IO L.ByteString -> (Handle -> IO a) -> IO a)
-> Cipher -> IO L.ByteString -> (L.ByteString -> IO a) -> IO a
-pass to n s a = to n s $ \h -> a =<< L.hGetContents h
+pass to n s a = to n s $ a <=< L.hGetContents
hmacWithCipher :: Cipher -> String -> String
hmacWithCipher c = hmacWithCipher' (cipherHmac c)