Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Partial Fix for #543 #1015
I was looking to fix a usability issue; cabal would fail when given an empty http_proxy env variable. I replaced the proxy string extraction code with fetchProxy from HTTP (>=4000.0.8) and perform a check to see if the http_proxy string is empty - and if so, treat it as NoProxy. This should of course be the default behaviour of fetchProxy.