diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-22 14:08:36 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-22 14:08:36 -0400 |
commit | 3eb522469e641e31d02fa060a1b48b93edbf7d84 (patch) | |
tree | 5d107b396c60822cf16f919e806d3fa9d042beb0 /Types | |
parent | fc143a225540c49a0d7f4b9e1bb0345a89260ea5 (diff) | |
download | keysafe-3eb522469e641e31d02fa060a1b48b93edbf7d84.tar.gz |
record already-existing backup in log after restoring a secret key
This will prevent --autostart from prompting to get the newly restored key
backed up again.
This commit was sponsored by Remy van Elst on Patreon.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Server.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Types/Server.hs b/Types/Server.hs index e1b4191..a6d1ad9 100644 --- a/Types/Server.hs +++ b/Types/Server.hs @@ -17,12 +17,12 @@ type HostName = String -- hostnames. Using tor is highly recommended, to avoid correlation -- attacks. data ServerAddress = ServerAddress HostName Port - deriving (Show) + deriving (Show, Eq, Ord) -- | Name used in queuing uploads to the server. Should remain stable -- across keysafe versions. newtype ServerName = ServerName String - deriving (Show, Generic) + deriving (Show, Eq, Ord, Generic) instance ToJSON ServerName instance FromJSON ServerName @@ -32,4 +32,4 @@ data Server = Server , serverAddress :: [ServerAddress] -- ^ A server may have multiple addresses, or no current address. } - deriving (Show) + deriving (Show, Eq, Ord) |