summaryrefslogtreecommitdiffhomepage
path: root/Types
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-27 13:09:30 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-27 13:09:30 -0400
commit8fe65bd0f70c1cd2fc83469f401c987d69eb4370 (patch)
tree6e37cd1050f7b0b8d59b4198f6843c3faa54dbb9 /Types
parentd154002e063c1c3af5aba13cf05a11df8b8f9897 (diff)
downloadkeysafe-8fe65bd0f70c1cd2fc83469f401c987d69eb4370.tar.gz
Added --check-servers mode, which is useful both at the command line to see what servers keysafe knows about, and as a cron job.
This commit was sponsored by Jake Vosloo on Patreon.
Diffstat (limited to 'Types')
-rw-r--r--Types/Server.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Types/Server.hs b/Types/Server.hs
index 785dd24..5caf9db 100644
--- a/Types/Server.hs
+++ b/Types/Server.hs
@@ -21,7 +21,7 @@ data ServerAddress = ServerAddress HostName Port
-- | Name used in queuing uploads to the server. Should remain stable
-- across keysafe versions.
-newtype ServerName = ServerName String
+newtype ServerName = ServerName { fromServerName :: String }
deriving (Show, Eq, Ord, Generic)
instance ToJSON ServerName