The best way to install Haskell, is using GHCup.
After installing the necessary dependencies, in order to build the project, use the Makefile. Follow these steps:
- Clone the project:
git clone [email protected]:EpitechPromo2026/B-FUN-500-PAR-5-2-glados-jeremy.elalouf.git
- Go to the project directory:
cd B-FUN-500-PAR-5-2-glados-jeremy.elalouf.git
- Build using Makefile:
make
- To use the project globally, install it:
make install
Run ./glados
to open the REPL.
To use the standard library, run cd stdlib; ../glados
. Then, you can type expressions:
glados> import std
glados> 6 * 7
42
You can even define functions!
glados> fn twice _ = 2 * _
glados> twice 3
6
For more information about the language, check out Getting started with EK.
If you use Emacs, you can get Syntax Hightlighting using our plugin: ek-mode