Skip to content

Warning 106 when using Marshal.to_string #323

@eWert-Online

Description

@eWert-Online

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions