Created
January 3, 2014 15:26
-
-
Save Philonous/8239676 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module GpgMe where | |
import Bindings | |
keyName k = keyGetStringAttr k AttrName 0 | |
main = do | |
checkVersion Nothing | |
(_, ctx) <- ctxNew | |
keys <- getKeys ctx | |
print $ map keyName keys | |
-- >>> main | |
-- ["Felix von Leitner","Philipp Balzarek","Jon Kristensen","vrijn"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment