You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5 KiB

5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [![Build Status](https://travis-ci.org/hasufell/ghcup.svg?branch=master)](https://travis-ci.org/hasufell/ghcup)
  2. [![license](https://img.shields.io/github/license/hasufell/ghcup.svg)](COPYING)
  3. # GHC up
  4. Installs a specified GHC version into `~/.ghcup/<ver>`,
  5. and places `ghc-<ver>` etc. symlinks in `~/.ghcup/bin/`.
  6. Additionally allows to manage currently selected ghc
  7. via unversioned symlinks.
  8. This uses precompiled GHC binaries that have been
  9. compiled on fedora/debian by
  10. [upstream GHC](https://www.haskell.org/ghc/download_ghc_8_6_1.html#binaries).
  11. ## Why
  12. I don't use stack, but `cabal new-*` and system GHC versions
  13. are often either outdated or cannot be installed in parallel
  14. with proper symlink management.
  15. Inspired by [rustup](https://github.com/rust-lang-nursery/rustup.rs).
  16. ## Installation
  17. Just place `ghcup.sh` into your PATH anywhere
  18. (preferably `~/.local/bin`).
  19. ## Usage
  20. See `ghcup.sh --help`.
  21. ## Contributing
  22. * PR or email
  23. * this script is POSIX shell
  24. * use [shellcheck](https://github.com/koalaman/shellcheck) and `checkbashisms.pl` from [debian devscripts](http://http.debian.net/debian/pool/main/d/devscripts/devscripts_2.18.4.tar.xz)
  25. * whitespaces, no tabs
  26. ## TODO
  27. - [ ] FreeBSD support
  28. - [ ] Make fetching tarballs more robust
  29. ## Known problems
  30. Since this uses precompiled binaries you may run into
  31. problems with ncurses and missing libtinfo, in case
  32. your distribution doesn't use the legacy way of building
  33. ncurses and has no compatibility symlinks in place.
  34. Ask your distributor on how to solve this.