tn-fp-haskell-course

This is the home of the TPs for the functional programming course of Telecom Nancy

The fastest way to get a working environment is to use the docker image published by CI. OCaml tooling and this repository’s code are included.

In vscode (with the Dev Containers extension): open the repository root, then run Dev Containers: Reopen in Container from the command palette (Ctrl/Cmd+Shift+P). vscode reads .devcontainer/devcontainer.json, pulls the image and mounts your clone.

From a terminal inside the container you can then run e.g.:

cabal run -v0 TP4.hs

Manual setup (without Docker)

To reproduce a working environment, from the repository root, do:

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: