https://github.com/leeor/rescript-ppx-let
Jane Street's `ppx_let` repackaged for `npm`
https://github.com/leeor/rescript-ppx-let
Last synced: 8 months ago
JSON representation
Jane Street's `ppx_let` repackaged for `npm`
- Host: GitHub
- URL: https://github.com/leeor/rescript-ppx-let
- Owner: leeor
- License: mit
- Created: 2020-09-06T20:25:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T09:07:07.000Z (over 5 years ago)
- Last Synced: 2024-11-11T07:39:32.322Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - rescript-ppx-let
README
### Motivation
Way before the ReScript compiler moved to OCaml 4.06.1, I liked the richness and interface provided by Jane Street's `ppx_let`, but I haven't had the chance to target native. It was time to give it a try in JavaScript-land.
### Installing
In your terminal, run:
```sh
yarn add --dev @leeor/rescript-ppx-let
```
Edit `bsconfig.json`:
```json
"ppx-flags": [
["@leeor/rescript-ppx-let/ppx.exe", "-as-ppx"]
]
```
The specifics of using this PPX are very well documented in the original [README](https://github.com/janestreet/ppx_let).