Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aantron/promise-example-bsb

Hello world using reason-promise
https://github.com/aantron/promise-example-bsb

demo promise rescript

Last synced: 5 days ago
JSON representation

Hello world using reason-promise

Awesome Lists containing this project

README

        

# reason-promise example: Hello, world!

To try [reason-promise][repromise], clone this repo...

```
git clone https://github.com/aantron/promise-example-bsb.git
cd promise-example-bsb
```

and do:

```
npm install
npm run test
```

This will print

```
Promise { }
Promise { 'Hello' }
Hello world!
```

See [`main.re`][main] for the code.

[repromise]: https://github.com/aantron/promise
[main]: https://github.com/aantron/promise-example-bsb/blob/master/main.re