Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning 106 when using Marshal.to_string #323

Closed
eWert-Online opened this issue Jun 25, 2022 · 2 comments
Closed

Warning 106 when using Marshal.to_string #323

eWert-Online opened this issue Jun 25, 2022 · 2 comments

Comments

@eWert-Online
Copy link

When using Marshal.to_string the following warning occurs:

82 |   let marshal (d : declaration) = Marshal.to_string d []
                                       ^^^^^^^^^^^^^^^^^^^^^^
Warning 106 [bucklescript-unimplemented-primitive]: Unimplemented primitive used:caml_output_value_to_string

and gets compiled to

import * as Caml_external_polyfill from "melange/lib/es6/caml_external_polyfill.js";

function marshal(d) {
  return Caml_external_polyfill.resolve("caml_output_value_to_string")(d, /* [] */0);
}

Marshal.from_string seems to not generate the warning and compiles to

import * as Marshal from "melange/lib/es6/marshal.js";

function unmarshal(s) {
  return Marshal.from_string(s, 0);
}
@jchavarri
Copy link
Member

Afaik, Marshal module is not supported in Melange.

@anmonteiro
Copy link
Member

Marshal is indeed not supported. Tracking this in #715.

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

No branches or pull requests

3 participants