summaryrefslogtreecommitdiff
path: root/Crypto.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Crypto.hs')
-rw-r--r--Crypto.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Crypto.hs b/Crypto.hs
index ed29747aa..d789b4455 100644
--- a/Crypto.hs
+++ b/Crypto.hs
@@ -38,6 +38,7 @@ import System.IO
import System.Posix.IO
import System.Posix.Types
import System.Posix.Process
+import Control.Applicative
import Control.Concurrent
import Control.Exception (finally)
import System.Exit
@@ -136,7 +137,7 @@ encryptCipher (Cipher c) (KeyIds ks) = do
{- Decrypting an EncryptedCipher is expensive; the Cipher should be cached. -}
decryptCipher :: RemoteConfig -> EncryptedCipher -> IO Cipher
decryptCipher _ (EncryptedCipher encipher _) =
- return . Cipher =<< gpgPipeStrict decrypt encipher
+ Cipher <$> gpgPipeStrict decrypt encipher
where
decrypt = [ Param "--decrypt" ]