Skip to content

Commit

Permalink
Add http-proxy info in install_and_upgrade.md (#4400)
Browse files Browse the repository at this point in the history
Relates to [#2240](#2240 (comment))
  • Loading branch information
shiyuge authored and dbaynard committed Nov 15, 2018
1 parent 13c76af commit a078f1c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/install_and_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,17 @@ package-indices:
http: http://mirrors.tuna.tsinghua.edu.cn/hackage/00-index.tar.gz
```

## Using an http proxy

To use `stack` behind a http proxy with ip address *IP* and port *PORT*, first set up an environment variable `http_proxy` and then run the stack command. _e.g._

```
$ export http_proxy=IP:PORT
$ stack install
```

Note that on most operating systems, it is not mandatory for programs to follow the "system-wide" http proxy. Some programs, such as browsers, do honor this "system-wide" http proxy setting, while other programs, including bash, do not. That means configuring "http proxy setting" in your Control Panel (Windows) or System Preferences (Mac) would not result in `stack` traffic going through the proxy.

## Upgrade

There are essentially four different approaches to upgrade:
Expand Down

0 comments on commit a078f1c

Please sign in to comment.