Skip to content

Commit 15b364a

Browse files
author
Gaël Deest
authored
Merge pull request #1541 from mjdominus/master
Update documentation
2 parents 8fccfcc + 0e4d02a commit 15b364a

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BUILDDIR = _build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:
13-
@if [ ! -d venv ]; then echo "WARNING: There is no venv directory, did you forget to 'virtualenv venv'. Check building-the-docs file."; fi
13+
@if [ ! -d venv ]; then echo "WARNING: There is no venv directory, did you forget to 'virtualenv venv'. Check README.md."; fi
1414
@if [ ! "z$$(which $(SPHINXBUILD))" = "z$$(pwd)/venv/bin/sphinx-build" ]; then echo "WARNING: Did you forgot to 'source venv/bin/activate'"; fi
1515
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1616

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# General information about the project.
4848
project = u'Servant'
49-
copyright = u'2018, Servant Contributors'
49+
copyright = u'2022, Servant Contributors'
5050
author = u'Servant Contributors'
5151

5252
# The version info for the project you're documenting, acts as replacement for
@@ -169,4 +169,3 @@
169169
source_parsers = {
170170
'.lhs': CommonMarkParser,
171171
}
172-

doc/tutorial/install.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,29 @@ nix
4040
`Nix <https://nixos.org/nix/>`_ users should feel free to take a look at
4141
the `nix/shell.nix` file in the repository and use it to provision a suitable
4242
environment to build and run the examples.
43+
44+
Note for Ubuntu users
45+
--------
46+
47+
Ubuntu's packages for `ghc`, `cabal`, and `stack` are years out of date.
48+
If the instructions above fail for you,
49+
try replacing the Ubuntu packages with up-to-date versions.
50+
First remove the installed versions:
51+
52+
.. code-block:: bash
53+
54+
# remove the obsolete versions
55+
$ sudo apt remove ghc haskell-stack cabal-install
56+
57+
Then install fresh versions of the Haskell toolchain
58+
using the `ghcup <https://www.haskell.org/ghcup/install/>`_ installer.
59+
60+
As of February 2022, one easy way to do this is by running a bootstrap script:
61+
62+
.. code-block:: bash
63+
64+
$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
65+
66+
The script is interactive and will prompt you for details about what
67+
you want installed and where. To install manually,
68+
see `the detailed instructions <https://www.haskell.org/ghcup/install/#manual-install>`_.

0 commit comments

Comments
 (0)