To reproduce a working environment, from the repository root, do:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
This will ask questions:
P
to update your PATH
automatically.Y
to install IDE tooling (haskell-language-server
).N
to install stack
, since this project uses the simpler
cabal build toolsudo apt install build-essential curl libffi-dev etc..
(see the link for the exact list of packages to install).ghcup install ghc 9.4.7
and then ghcup set ghc 9.4.7
to set the expected compiler version.cabal build all
. This will take a while as this repository depends on a number
of fat libraries. Brew some coffee meanwhile.At this point, everything should be set to work on the command line, for example try:
cabal run -v0 TP4.hs
You should get as output:
pyEval "1 + 3" returned: 4
Now you can continue with the IDE configuration:
vscode
from the terminal (code . &
), from this repository’s root.
If vscode
asks you to install the Haskell Language Server, say yes.TP*.hs
files;
see the first line for how to execute them.