Skip to content

Conversation

cristianoc
Copy link
Collaborator

There’s one issue with deprecating types, where other occurrences of the type in the .mli also trigger the deprecation, see https://caml.inria.fr/mantis/view.php?id=7005 .

In particular, the deprecation of true_ mentions boolean, and when compiled, js.mli triggers a deprecation warning. Adding [@@ocaml.warning “-3”] did not help. So I’ve made deprecation warnings not fatal when compiling jscomp/runtime.

There’s one issue with deprecating types, where other occurrences of the type in the .mli also trigger the deprecation, see https://caml.inria.fr/mantis/view.php?id=7005 .

In particular, the deprecation of true_ mentions boolean, and when compiled, js.mli triggers a deprecation warning. Adding `[@@ocaml.warning “-3”]` did not help. So I’ve made deprecation warnings not fatal on `jscomp/runtime`.
@cristianoc
Copy link
Collaborator Author

@bobzhang see comments on compiling js.mli.
A simple change, that I'm trying next, is to always use bool in the mli, which obscures the mli a little, but compiles.

@bobzhang
Copy link
Member

looks great, thanks

@bobzhang bobzhang merged commit 05d6517 into rescript-lang:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants