Malfunction backend for Idris 2.
Get an idris2
checkout.
In its root directory, run make install-api
.
Follow the instructions in the Malfunction README.
I use ocaml-4.09.1+flambda
.
Here's my patched version that fixes some issues with Dune on my machine.
In the root directory of idris2-mlf
, run make
.
Then you can use build/exec/idris2-mlf --codegen mlf
to compile stuff.
In the root directory of idris2-mlf
, run make install
.
This will build idris2-mlf-mlf
using --codegen mlf
to obtain a statically
linked native binary that will be installed in ${IDRIS_PREFIX}/bin
.
-
idris2-mlf --codegen mlf
builds the whole project with inter-module optimisations. If a module is changed, all its dependencies have to be rebuilt, even if its interface stays the same. -
idris2-mlf --codegen mlf-incremental
usesocamlopt -opaque
to avoid rebuilding dependencies of a module if its interface did not change.
BSD-3, same as Idris 2.
- @ziman
- @markuspf
- This project exchanges patches with idris2-ocaml by @karroffel.