Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that Reason dialect is supported out of the box #10284

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading