Skip to content

Commit

Permalink
more Win32-2.6 compat fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyh committed Nov 14, 2017
1 parent 9207033 commit dbaee53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http-client/Network/HTTP/Proxy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@ registryProxyString = catch
then do
#if MIN_VERSION_Win32(2, 6, 0)
server <- regQueryValue hkey "ProxyServer"
exceptions <- try $ regQueryValue hkey "ProxyOverride" :: IO (Either IOException String)
#else
server <- regQueryValue hkey (Just "ProxyServer")
#endif
exceptions <- try $ regQueryValue hkey (Just "ProxyOverride") :: IO (Either IOException String)
#endif
return $ Just (server, either (const "") id exceptions)
else return Nothing)
hideError where
Expand Down

0 comments on commit dbaee53

Please sign in to comment.