.github | ||
builder/src | ||
compiler/src | ||
docs | ||
hints | ||
src | ||
terminal | ||
tests | ||
.gitignore | ||
build_dev_bin.sh | ||
cli.js | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
gren.cabal | ||
gren.json | ||
index.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
ROADMAP.md |
Gren
Compiler for Gren, a pure functional programming language that is easy to learn, but powerful in use.
There are easier ways to install the compiler than compiling the source, you might want to read the setup instructions.
Build from source
The Gren compiler is written in Haskell, so to build from source you need to have GHC 9.4 (Haskell compiler) and Cabal 3.8 (haskell build tool) installed on your system.
You can install these using ghcup. By default, ghcup will install an older version of Haskell and Cabal, so you can install and set the required versions using ghcup tui
.
Compiling and installing the project should just be a matter of cabal install
, after which you should be able to run the gren
command from your command line.
Read the CONTRIBUTING.md
file for some helpful commands for working on the compiler itself.