aboutsummaryrefslogtreecommitdiff
path: root/Crypto.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-27 19:58:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-27 19:58:48 -0400
commit34bdb1436c716431c2fae58908e440fc506878b2 (patch)
treee46d5c1a0392cc008755bcd28455cd1494e6490a /Crypto.hs
parentcbf810a421901e76ee2d3e18592fb4d39de851a6 (diff)
remove *>=> and >=*> ; use <$$> instead
I forgot I had <$$> hidden away in Utility.Applicative. It allows doing the same kind of currying as does >=*> and I found using it made the code more readable for me. (*>=> was not used)
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 f99f8cbf1..371bbcaf1 100644
--- a/Crypto.hs
+++ b/Crypto.hs
@@ -102,7 +102,7 @@ updateEncryptedCipher newkeys encipher@(EncryptedCipher _ variant (KeyIds ks)) =
cipher <- decryptCipher encipher
encryptCipher cipher variant $ KeyIds ks'
where
- listKeyIds = mapM (Gpg.findPubKeys >=*> keyIds) >=*> concat
+ listKeyIds = concat <$$> mapM (keyIds <$$> Gpg.findPubKeys)
describeCipher :: StorableCipher -> String
describeCipher (SharedCipher _) = "shared cipher"