Skip to content

Commit

Permalink
Add Caveats doc
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil committed Mar 20, 2020
1 parent 3445c85 commit a22215b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/09-I18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Then errors returned from all validators must be of this type.

---

Next: **[API](./10-API.md)**
Next: **[Caveats](./10-Caveats.md)**
17 changes: 17 additions & 0 deletions docs/10-Caveats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Caveats
## Warning 42
This warning is disabled by default but if you explicitly enabled it, you might see the following message during a compilation:

```
Warning 42: this use of [field] relies on type-directed disambiguation, it will not compile with OCaml 4.00 or earlier.
```

To get rid of it, consider to disable it either globally via `bsconfig.json` or locally in form modules:

```reason
[@ocaml.warning "-42"];
```

---

Next: **[API →](./10-API.md)**
File renamed without changes.

0 comments on commit a22215b

Please sign in to comment.