Skip to content

Commit

Permalink
Document that Reason/Rescript is supported out of the box (#10284)
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Kubica <marek@tarides.com>
  • Loading branch information
Leonidas-from-XIV committed Mar 21, 2024
1 parent ad457c5 commit cd6f2e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/reference/files/dune-project/dialect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,17 @@ dialect
This field supports the same sub-fields as ``implementation``.

.. versionchanged:: 3.9 This field is made optional.


Default dialects
----------------

Dune ships with two dialects pre-configured and enabled:

* ``ocaml`` for the default OCaml syntax which consumes `.ml` and `.mli` files
and uses ``ocamlformat`` for formatting.
* ``reason`` for the Reason syntax and enabled in `.re`/`.rei` files. ``refmt``
is used for formatting.

A third dialect, ``rescript``, is added when Melange support (see :doc:`/melange`)
is enabled in the project.

0 comments on commit cd6f2e4

Please sign in to comment.