From 5487ed305120ee9c511878b90e9770ac30e20324 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Sep 2016 15:03:28 -0400 Subject: In --autostart mode, check for gpg keys that have not been backed up, and offer to back them up. Only ask once per key. This commit was sponsored by Thomas Hochstein on Patreon. --- Types.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Types.hs') diff --git a/Types.hs b/Types.hs index c065da3..937b58c 100644 --- a/Types.hs +++ b/Types.hs @@ -55,7 +55,7 @@ newtype Name = Name B.ByteString -- | Source of the secret key stored in keysafe. data SecretKeySource = GpgKey KeyId | KeyFile FilePath - deriving (Show, Generic) + deriving (Show, Eq, Generic) instance ToJSON SecretKeySource instance FromJSON SecretKeySource @@ -65,7 +65,7 @@ instance FromJSON SecretKeySource -- -- A gpg keyid is the obvious example. data KeyId = KeyId T.Text - deriving (Show, Generic) + deriving (Show, Eq, Generic) instance ToJSON KeyId instance FromJSON KeyId -- cgit v1.2.3