Hi,

There have been some changes to the newest release of Sexplib.  It is
now required to open "Sexplib.Std" to "see" the default converters for
the standard OCaml types.  The same is true for bin-prot.

The code automatically generated by the preprocessor used to hard-code
the converters by explicitly referring to the functions in Sexplib.
But this prevented users from overriding them, motivating Jane Street
to propose this change.

Sorry, it seems that this change hasn't been mentioned in the docs.
This will be fixed in future documentation releases.  Please let me
know if there are any other issues.

Regards,
Markus

On Sun, Sep 18, 2011 at 14:41, Dario Teixeira <[email protected]> wrote:
> Hi,
> I've updated to the latest version of Sexplib, and the support for hashtable
> serialisation
> seems broken or at least changed.  I was accustomed to using the syntax
> extension
> for convenient declaration of (de)serialisers, and this worked too for the
> Hashtbl module.
> For example:
>
> type dict_t = (key_t, value_t) Hashtbl.t with sexp
> But with Sexplib 7.0.4 this produces an error:
>
> Error: Unbound value Hashtbl.t_of_sexp
> Is this a bug, or must the (de)serialisers be declared manually with the
> newer versions
> of Sexplib?
> Thanks in advance for your time!
> Best regards,
> Dario Teixeira
>



-- 
Markus Mottl        http://www.ocaml.info        [email protected]


-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to