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]:legolas-tek/ek.git
- Go to the project directory:
cd ek
- 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. Example programs can be found in the examples directory.
If you use Emacs, you can get Syntax Hightlighting using our plugin: ek-mode