Skip to content

Commit 5a8d572

Browse files
committed
Update docs to reflect new requirements and attributes
- recent systems need `libtinfo6` instead of `libtinfo5` - python2 is no longer used and the `python` package is no longer available
1 parent 5524f7f commit 5a8d572

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

docs/haskell-use-cases.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ toolchain resolution based on the target platform)::
5454
)
5555

5656
rules_haskell_toolchains(
57+
dist = {
58+
"<arch>": "abc", # Select a concrete dist available for the <arch>
59+
},
60+
variant = {
61+
"<arch>": "abc", # Select a concrete variant available for the <arch> and <dist>
62+
}
5763
version = "X.Y.Z", # Any GHC version
5864
)
5965

66+
*Note*: if no `dist` attribute is specified, we pick a Debian based binary
67+
distribution on Linux by default.
6068

6169
The compiler can also be pulled from Nixpkgs_, a set of package
6270
definitions for the `Nix package manager`_. Pulling the compiler from

docs/haskell.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ On a Unix system you will need the following tools installed.
3030
* ``gcc``
3131
* ``libffi``
3232
* ``libgmp``
33-
* ``libtinfo5``
33+
* ``libtinfo6``
3434
* ``make``
35-
* ``python3`` (``python`` also needs to be available in ``$PATH``. Depending on your distribution, this might require installing the ``python`` meta-package, which might use Python 2 or 3, ``rules_haskell`` works with both.)
35+
* ``python3``
3636
* JDK (e.g., OpenJDK 8 or 11)
3737

3838
On Ubuntu you can obtain them by installing the following packages. ::
3939

40-
build-essential libffi-dev libgmp-dev libtinfo5 libtinfo-dev python python3 openjdk-11-jdk
40+
build-essential libffi-dev libgmp-dev libtinfo6 libtinfo-dev python3 openjdk-11-jdk
41+
42+
*Note*: on older Unix systems, with older GHC versions you might need to install
43+
``libtinfo5`` instead of ``libtinfo6`` and ``libnuma-dev`` additionally.
4144

4245
On Windows you will need.
4346

0 commit comments

Comments
 (0)