https://github.com/anmonteiro/reason-lwt-tutorial
https://github.com/anmonteiro/reason-lwt-tutorial
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anmonteiro/reason-lwt-tutorial
- Owner: anmonteiro
- License: mit
- Created: 2017-08-26T21:15:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T21:25:41.000Z (over 8 years ago)
- Last Synced: 2024-05-22T21:26:41.063Z (over 1 year ago)
- Language: OCaml
- Size: 5.86 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
reason-lwt-tutorial
---
This small project implements the solutions of the Mirage [Lwt tutorial](https://mirage.io/wiki/tutorial-lwt)
in Reason, using [bsb-native](https://github.com/bsansouci/bsb-native) for compilation.
## Install
```shell
opam install lwt
npm i
```
## Build
```shell
npm run build
```
### Building to native
The above command will compile to bytecode by default. If you want to compile
to native, run the following command:
```shell
npm run build -- -backend native
```
## Run
```shell
./lib/bs/bytecode/index.byte
```
### Running the native build
``` shell
./lib/bs/native/index.native
```
## License
MIT. See [LICENSE](./LICENSE).