ReasonML Quick Start Guide
上QQ阅读APP看书,第一时间看更新

The warnings field

If we wanted to force this warning to throw an error instead, we note the error number from the preceding  snippet and change the warnings field of bsconfig.json to the following:

"warnings": {
"error": "+101+8" // added "+8"
},

To turn all warnings into errors, use the following code:

"warnings": {
"error": "A"
},
For a complete list of warning numbers, check out  https://caml.inria.fr/pub/docs/manual-ocaml/comp.html#sec281  (scroll down a bit).