compiler/README.md

16 lines
923 B
Markdown
Raw Permalink Normal View History

2022-02-11 15:00:03 +03:00
# Gren
2016-12-20 00:55:00 +03:00
2022-11-30 10:38:32 +03:00
Compiler for Gren, a pure functional programming language that is easy to learn, but powerful in use.
2022-05-19 13:44:09 +03:00
There are easier ways to install the compiler than compiling the source, you might want to read the [setup instructions](https://gren-lang.org/install).
2022-05-19 13:44:09 +03:00
## Build from source
2022-05-19 13:44:09 +03:00
2023-02-16 18:36:08 +03:00
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.
2022-05-19 13:44:09 +03:00
You can install these using [ghcup](https://www.haskell.org/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`.
2022-05-19 13:44:09 +03:00
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.