Skip to content

Commit

Permalink
📝 Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeta611 committed Jul 10, 2024
1 parent 0dba5d0 commit 0fc4b4e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# React-tRace

## Developing

We use the experimental effect syntax, so [OCaml 5.1.1 with effect syntax support](https://ocaml.org/p/ocaml-variants/5.1.1%2Beffect-syntax) should be installed.

```sh
opam update
opam switch create . 5.1.1+effect-syntax
```

Confirm that the new opam switch is activated using `opam switch` and install the dependencies:

```sh
opam install --deps-only --with-test .
```

Then build with dune:

```sh
dune build
```

You can run React-tRace with dune as well:

```sh
dune exec react_trace -- samples/simple.ml
```

Tests can be run with

```sh
dune runtest
```

Note that the LSP server does not support OCaml 5.1.1 with effect syntax, so it is convenient to run `dune build --watch` while developing.

Formatting is available with [the fork that supports the effect syntax](https://github.com/Zeta611/ocamlformat/tree/effect-syntax).
Pin the repo and install it with opam.

0 comments on commit 0fc4b4e

Please sign in to comment.