aboutsummaryrefslogtreecommitdiff
path: root/Utility/Gpg.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-04-26 19:25:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-04-26 19:25:05 -0400
commitc7999da69b039829acc3b7da8005224af5bf6ed8 (patch)
treeb17c7d897d95503f1af66efc98e28da1179d798c /Utility/Gpg.hs
parenta885d67e97c63d8fff657f6eb8d503fd91b0b42c (diff)
hlint
Diffstat (limited to 'Utility/Gpg.hs')
-rw-r--r--Utility/Gpg.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs
index 05c03d6ef..a00bf99da 100644
--- a/Utility/Gpg.hs
+++ b/Utility/Gpg.hs
@@ -145,7 +145,7 @@ findPubKeys :: String -> IO KeyIds
findPubKeys for = KeyIds . parse . lines <$> readStrict params
where
params = [Params "--with-colons --list-public-keys", Param for]
- parse = catMaybes . map (keyIdField . split ":")
+ parse = mapMaybe (keyIdField . split ":")
keyIdField ("pub":_:_:_:f:_) = Just f
keyIdField _ = Nothing
@@ -195,7 +195,7 @@ genSecretKey keytype passphrase userid keysize =
Algo n -> show n
, Just $ "Key-Length: " ++ show keysize
, Just $ "Name-Real: " ++ userid
- , Just $ "Expire-Date: 0"
+ , Just "Expire-Date: 0"
, if null passphrase
then Nothing
else Just $ "Passphrase: " ++ passphrase