summaryrefslogtreecommitdiff
path: root/lib/KeyRing/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/KeyRing/Types.hs')
-rw-r--r--lib/KeyRing/Types.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/KeyRing/Types.hs b/lib/KeyRing/Types.hs
index dbcc22c..c272efc 100644
--- a/lib/KeyRing/Types.hs
+++ b/lib/KeyRing/Types.hs
@@ -32,13 +32,16 @@ data KeyRingOperation = KeyRingOperation
32 -- ^ If provided, this is the directory where the 'HomeSec' and 'HomePub' 32 -- ^ If provided, this is the directory where the 'HomeSec' and 'HomePub'
33 -- files reside. Otherwise, the evironment variable $GNUPGHOME is consulted 33 -- files reside. Otherwise, the evironment variable $GNUPGHOME is consulted
34 -- and if that is not set, it falls back to $HOME/.gnupg. 34 -- and if that is not set, it falls back to $HOME/.gnupg.
35 , preferredPGPVersion :: Word8
36 -- ^ Newly created PGP key packets will use this version. It should be set
37 -- to either 4 or 5.
35 } 38 }
36 deriving (Eq,Show) 39 deriving (Eq,Show)
37instance Semigroup KeyRingOperation where 40instance Semigroup KeyRingOperation where
38 KeyRingOperation f p t h <> KeyRingOperation f' p' t' h' = 41 KeyRingOperation f p t h v <> KeyRingOperation f' p' t' h' v' =
39 KeyRingOperation (f <> f') (p <> p') (t <> t') (h <> h') 42 KeyRingOperation (f <> f') (p <> p') (t <> t') (h <> h') (max v v')
40instance Monoid KeyRingOperation where 43instance Monoid KeyRingOperation where
41 mempty = KeyRingOperation Map.empty [] [] Nothing 44 mempty = KeyRingOperation Map.empty [] [] Nothing 4
42 45
43data InputFile = HomeSec 46data InputFile = HomeSec
44 -- ^ A file named secring.gpg located in the home directory. 47 -- ^ A file named secring.gpg located in the home directory.