Skip to content

Add release channels info to the --help #1262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion app/ghcup/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,18 @@ main = do
)

let main_footer = [s|Discussion:
ghcup installs the Glasgow Haskell Compiler from the official
ghcup installs the Haskell development tools from the configured
release channels, enabling you to easily switch between different
versions. It maintains a self-contained ~/.ghcup directory.

Release Channels:
* default: maintained by GHCup (recommended)
* cross: contains experimental cross compilers
* prereleases: contains pre-releases of all tools
* vanilla: similar to default but only uses upstream bindists
(no patches/fixes are applied, no missing platforms added)
More details at <https://www.haskell.org/ghcup/guide/#release-channels>

ENV variables:
* GHCUP_INSTALL_BASE_PREFIX: the base of ghcup (default: $HOME)
* GHCUP_USE_XDG_DIRS: set to anything to use XDG style directories
Expand Down
1 change: 0 additions & 1 deletion lib-opt/GHCup/OptParse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ opts =
<> long "url-source"
<> metavar "<URL_SOURCE|cross|prereleases|vanilla|default>"
<> help "Alternative ghcup download info"
<> internal
<> completer urlSourceCompleter
)
)
Expand Down
Loading