haskell/cabal — pull request #1015 by arunchaganty (2012-08-26 21:59:23+00:00)
Title: Partial Fix for #543

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.