From f93c930b623eb85e9e7a85a14a7d995abc8c55ff Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Fri, 19 Feb 2016 21:57:04 +0100 Subject: [PATCH] Make secure remote-repos a bit more discoverable. Before this change, the relevant section of the default config file looked like this: repository hackage.haskell.org url: http://hackage.haskell.org/ With this change, it looks like this: repository hackage.haskell.org url: http://hackage.haskell.org/ -- secure: False -- root-keys: -- key-threshold: --- cabal-install/Distribution/Client/Config.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cabal-install/Distribution/Client/Config.hs b/cabal-install/Distribution/Client/Config.hs index da8e762bdfb..c1b4de5fabc 100644 --- a/cabal-install/Distribution/Client/Config.hs +++ b/cabal-install/Distribution/Client/Config.hs @@ -978,7 +978,9 @@ installDirsFields = map viewAsFieldDescr installDirsOptions ppRemoteRepoSection :: RemoteRepo -> Doc ppRemoteRepoSection vals = ppSection "repository" (remoteRepoName vals) - remoteRepoFields Nothing vals + remoteRepoFields def vals + where + def = Just (emptyRemoteRepo "ignored") { remoteRepoSecure = Just False } remoteRepoFields :: [FieldDescr RemoteRepo] remoteRepoFields =