Skip to content

Commit 9eb8e46

Browse files
authored
Merge branch 'source' into source
2 parents 7f2010b + b65633c commit 9eb8e46

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

docs/installation.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Installation
55
This page is a detailed explanation on how to install Reason with [opam](https://opam.ocaml.org/), both manually and using a template. There are other options available, such as [esy](https://esy.sh), but we recommend using opam for the best experience. Check the [esy installation page](installation-esy.md) if you want to use esy instead.
66

77
### System requirements
8+
89
- macOS and Linux are supported natively
910
- Windows is supported via WSL (https://ocaml.org/docs/ocaml-on-windows)
1011

@@ -53,7 +54,7 @@ For a comprehensive guide on how to create an opam switch, refer to the followin
5354
opam install reason
5455
```
5556

56-
Once the instalation of the [`reason`](https://opam.ocaml.org/packages/reason) package is done you will have available the following tools `refmt` and `rtop` and there's no configuration change to enable the build system (dune) to build your code.
57+
Once the installation of the [`reason`](https://opam.ocaml.org/packages/reason) package is done you will have available the following tools `refmt` and `rtop` and there's no configuration change to enable the build system (dune) to build your code.
5758

5859
Make sure you have installed the latest version of `refmt` and `rtop` by running the following command:
5960

@@ -74,24 +75,37 @@ opam install dune
7475
To wrap up the installation process, let's create a simple hello world project. With the basic setup done:
7576

7677
Create a file `hello.re` with the following content:
78+
7779
```
7880
print_endline("Hello world!");
7981
```
8082

83+
Create a file `dune-project` with the following content (check [dune.build](https://dune.build/) for latest version):
84+
85+
```
86+
(lang dune 3.6)
87+
```
88+
89+
Create an empty file `hello.opam`
90+
8191
Create a file `dune` with the following content:
92+
8293
```
8394
(executable
8495
(name hello)
8596
(public_name hello))
8697
```
98+
8799
> Note: dune uniformly uses the .exe extension to build native executables, even on Unix where programs don’t usually have a .exe extension.
88100
89101
The `executable` stanza is used to define executables and the `name` field is used to specify the name of the executable (Can run with `dune exec src/hello.exe`). The `public_name` field is used to specify the name of the executable when it is installed and allows you to run the executable with `hello` directly: `dune exec hello`.
90102

91103
Run the project (this will compile the project and run the executable):
104+
92105
```
93106
dune exec hello
94107
```
108+
95109
If you want to build only:
96110

97111
```

website/siteConfig.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ const users = [
288288
name: "Aspectivo",
289289
image: "img/logos/aspectivo.svg",
290290
infoLink: "https://aspectivo.ai",
291+
},
292+
{
293+
name: "DevITJobs",
294+
image: "img/logos/devitjobs-uk.svg",
295+
infoLink: "https://devitjobs.uk",
291296
}
292297
];
293298

0 commit comments

Comments
 (0)