summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorJacob Tan En <jacob.tan.en@gmail.com>2021-06-09 18:31:16 +0800
committerInari Listenmaa <inari.listenmaa@gmail.com>2021-06-11 13:23:18 +0800
commitecb19013c09438b8c193f28e77f813a887d57b27 (patch)
tree0f23d27ad030206c5dcd27c25ec4b534bfbc900f /download
parentc4165714066eb4fa4ccea0debf2a736930c2a281 (diff)
Update index-3.11.md
`Cabal install` is fragile and can fail if the GHC on path is of an incompatible version. Use ghcup to use a GHC version that is known to work.
Diffstat (limited to 'download')
-rw-r--r--download/index-3.11.md23
1 files changed, 7 insertions, 16 deletions
diff --git a/download/index-3.11.md b/download/index-3.11.md
index c128e77ce..0ebf0f031 100644
--- a/download/index-3.11.md
+++ b/download/index-3.11.md
@@ -49,15 +49,17 @@ You will probably need to update the `PATH` environment variable to include your
For more information, see [Using GF on Windows](https://www.grammaticalframework.org/~inari/gf-windows.html) (latest updated for Windows 10).
-## Installing the latest release from source
+## Installing the latest Hackage release (macOS, Linux, and WSL2 on Windows)
[GF is on Hackage](http://hackage.haskell.org/package/gf), so under
normal circumstances the procedure is fairly simple:
-1. Install a recent version of the [Haskell Platform](http://hackage.haskell.org/platform) (see note below)
-2. `cabal update`
-3. On Linux: install some C libraries from your Linux distribution (see note below)
-4. `cabal install gf`
+1. Install ghcup https://www.haskell.org/ghcup/
+2. `ghcup install ghc 8.10.4`
+3. `ghcup set ghc 8.10.4`
+4. `cabal update`
+5. On Linux: install some C libraries from your Linux distribution (see note below)
+6. `cabal install gf-3.11`
You can also download the source code release from [GitHub](https://github.com/GrammaticalFramework/gf-core/releases),
and follow the instructions below under **Installing from the latest developer source code**.
@@ -74,17 +76,6 @@ so you might want to add this directory to your path (in `.bash_profile` or simi
PATH=$HOME/.cabal/bin:$PATH
```
-**Build tools**
-
-In order to compile GF you need the build tools **Alex** and **Happy**.
-These can be installed via Cabal, e.g.:
-
-```
-cabal install alex happy
-```
-
-or obtained by other means, depending on your OS.
-
**Haskeline**
GF uses [`haskeline`](http://hackage.haskell.org/package/haskeline), which