367 Commits

Author SHA1 Message Date
032b95aa9b Remove show command, which is obsolete now 2019-04-10 14:37:01 +08:00
f26830c9b4 Considerably tweak the list subcommand wrt #88 2019-04-10 14:37:01 +08:00
36e8389bb0 Tweak ghcup upgrade
1. add --inplace flag
2. by default install into BIN_LOCATION
2019-04-07 02:08:09 +08:00
ae99de5876 Merge branch 'rm-cabal-reinstall' 2019-03-28 08:35:09 +08:00
78a6e235a8 Don't reinstall cabal-install from source in bootstrap-haskell
We already have the latest version available quite reliably.
2019-03-27 22:54:02 +08:00
0250b9fc97 Merge remote-tracking branch 'origin/pr/79' 2019-03-25 16:27:06 +08:00
Dale Wijnand
66c63f349d Prefer "macOS" over "Mac OS X"
(Apple rebranded Mac OS X to OS X in 2012, and then to macOS in 2016.)
2019-03-24 18:27:10 +00:00
Dale Wijnand
6cd563b139 Stop pointing to futurice now macOS is supported 2019-03-24 18:27:07 +00:00
febd0ac8a3 Merge branch 'www' 2019-03-23 20:26:18 +08:00
afe5670101 [www] Add note for people who don't like curl | sh 2019-03-23 11:44:05 +08:00
9b2cb028c5 [www] Make a distinction between unix, linux, mac, ... 2019-03-23 11:23:28 +08:00
c902304793 Add ghcup www, design from rustup 2019-03-23 00:44:14 +08:00
ff9261ba0c Merge branch 'changelog-subcommand' 2019-03-07 20:01:29 +08:00
12f9f155fb Implement changelog subcommand wrt #72 2019-03-07 20:00:43 +08:00
8e634b9444 Merge branch 'trap' 2019-03-07 19:55:37 +08:00
d01ed08504 Use trap to clean up interrupted download in cache
Fixes #73
2019-03-06 17:10:19 +08:00
21ba3f3714 Merge remote-tracking branch 'origin/pr/71' 2019-03-06 12:09:59 +08:00
David Tchepak
18c7e546b6 Add GHC 8.6.4
Added downloads available from https://downloads.haskell.org/~ghc/8.6.4/
as at the time of commit.

Have not made this recommended yet until common tools and libs are all
confirmed to work fine.
2019-03-06 10:55:33 +11:00
bbf63c3881 Merge remote-tracking branch 'origin/pr/70' 2019-02-20 18:20:57 +08:00
George Wilson
ae263ac282 Unquote invocations in emake 2019-02-20 13:18:22 +10:00
George Wilson
35bd1c04db Only read the FreeBSD major version 2019-02-18 15:48:16 +10:00
George Wilson
bb80559fb3 Specify versions for FreeBSD 2019-02-18 13:59:17 +10:00
George Wilson
45d939219c Make shellcheck happy 2019-02-18 13:19:25 +10:00
eb1dd745c1 Hide 'compile' subcommand by default from help menu 2019-02-18 11:01:52 +08:00
1b6aed0e55 Merge remote-tracking branch 'origin/pr/69' 2019-02-18 10:54:50 +08:00
George Wilson
398d8d7ae0 Define emake to enable installing on FreeBSD 2019-02-17 09:11:16 +10:00
George Wilson
4c22f6f41f Add FreeBSD download URLs 2019-02-17 03:32:28 +10:00
Joe Kachmar
318fbdc680 Bumps VERSION to 0.0.7 2019-02-12 14:25:04 -05:00
f99dd5d9cf Add notes about libnuma issues 2019-02-05 09:12:06 +08:00
56874f8893 Use GHCUP_INSTALL_BASE_PREFIX in bootstrap-haskell 2019-01-25 10:37:11 +08:00
99843f3201 Fix edo in bootstrap-haskell
This seems to have caused occasional weird
side-effects on the following line:

  edo curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > "${HOME}"/.ghcup/bin/ghcup
  ...
  edo ghcup install

It would result in:

  ~/.ghcup/bin/ghcup: line 1: $'\E[0': command not found
  ~/.ghcup/bin/ghcup: line 1: 35mcurl: command not found

which seems to be because of printf and the piping command.
It's not entirely clear to me what happens here, but it
seems part of the printf output to stdout where mixed
with the next command.
2019-01-24 14:18:47 +08:00
b60e546e9a Add historical note about CM 2019-01-13 14:34:44 +08:00
89e30cac5d Tweak README 2019-01-07 16:04:10 +08:00
64e9d26270 Fix travis 2019-01-07 11:39:49 +08:00
7d40a32a48 Fix number of jobs for cabal new-install in bootstrap-haskell 2019-01-07 11:21:00 +08:00
e0b1e5afef Set ghc-8.6.3 as the recommended version
It seems to work well with current ecosystem and stackage
has just introduced 8.6.3 as part of lts-13.1:
  https://www.stackage.org/lts-13.1
2019-01-07 11:12:18 +08:00
225d2d2be4 Merge branch 'bootstrap' 2019-01-07 11:08:40 +08:00
82c1636590 Add a bootstrap-haskell script, fixes #36 2019-01-04 17:55:47 +08:00
820d8eaa69 Improve error handling
In most cases, when we run a subshell with our own function
and assign the result to a variable, we also need to check that
the variable is non-empty, since 'die' and 'edo' don't propagate
to the parent shell.

In some cases, non-emptiness is handled in other ways or is not
fatal.
2019-01-04 16:07:50 +08:00
9cc652e34d Remove is_sourced functionality, it's not needed anymore 2019-01-04 13:53:09 +08:00
4c548c1037 Tweak exit code for 'ghcup install'
If a GHC is already installed, we shouldn't treat it as an
error.
2019-01-04 13:51:29 +08:00
717a8256a6 Make 'ghcup set' tag-aware 2019-01-04 13:51:28 +08:00
d1cb7127af Fix travis with latest shellcheck 2019-01-04 13:49:56 +08:00
79881100ff Improve documentation in .available-versions 2019-01-04 13:05:53 +08:00
f9195eb4d0 Improve documentation in .download-urls 2019-01-04 13:03:26 +08:00
f850329134 Merge github.com/andreabedini/ghcup.git patch-1 2018-12-30 00:20:09 +01:00
Andrea Bedini
ac83c76bfb Centos binaries seems to work on Amazon Linux
Note that the packages `ncurses-term` and `gmp-devel` are required to run ghc.
2018-12-27 15:40:39 +01:00
Andrea Bedini
5f04b34b15 Introduce distro_alias for Amazon Linux
Amazon Linux introduces itself as

```
andrea:~ $ cat /etc/os-release 
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
```
2018-12-27 15:37:43 +01:00
29164f33b0 Clarify log information 2018-12-15 00:35:31 +08:00
8d0b7b9680 Be more precise about bug description 2018-12-15 00:35:31 +08:00