From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p8IIfT8x017711 for ; Sun, 18 Sep 2011 20:41:29 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQBAAU6dk5iilu2g2dsb2JhbAA1DYJNlX2PBAEBAQoJDQUWJYFGAQMEAQEVIBUBAhUiARQIAXEBDgEGGIVaAYInAQmVaI4jCoJSg1yJKAEEBQGGcgSHb4tfhRgpRIdug1U X-IronPort-AV: E=Sophos;i="4.68,401,1312149600"; d="scan'208,217";a="120301969" Received: from nm22-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.182]) by mail1-smtp-roc.national.inria.fr with SMTP; 18 Sep 2011 20:41:23 +0200 Received: from [98.138.90.56] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 18 Sep 2011 18:41:22 -0000 Received: from [98.138.86.156] by tm9.bullet.mail.ne1.yahoo.com with NNFMP; 18 Sep 2011 18:41:22 -0000 Received: from [127.0.0.1] by omp1014.mail.ne1.yahoo.com with NNFMP; 18 Sep 2011 18:41:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 439367.71307.bm@omp1014.mail.ne1.yahoo.com Received: (qmail 80246 invoked by uid 60001); 18 Sep 2011 18:41:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1316371281; bh=JjL8CjppaowV/UElbE41TvuPt/oHXkIB2dLYxI0Zzl8=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=2U4vnGpM4Wl1Ya0FyeCef1Ju7Bc3iYpjYLWMZiw5ak0km8m6auZ2FSKIznCYbiu/9Lx8rAfl7M1zffHvpeJwQGJycYF+btVQDAb8Gb8DksnwZZkW/O3BLr/zbffuX2FXVjMnKGINBEljSaSBGzCTJ34VepJZ8mQPHNwKVHmRElE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=CXwAVzrEIELdxvuVxKXd7mIpsQ6xoMa3ptSGxTokhBz6pt75KufNDs1KH+33gWmZzPT8mfgl293lEtRzd6eG4invkWlLGNMT7fDaddzfNoh5NxCyjETfjmL/0lcFyMw0w98hciiA/8MmFgVRxh9SvG3d0bbkPOUhONK/ZrGwEbc=; X-YMail-OSG: SxbSMt4VM1mZQPBt8KcDm558af12aQzfXkNQXyDJrsRrswX 1G27mJTQQGhfq9CHmKFez..DCf8WiAB5UfgIZebbsMRiupku70gHCInoj_.d 6mKRvJnWyDiuU5MGHd4eh8HrkPIdR5XRwlU.ABI8EvDYU9SH5LVRPomc8bew r5r8FoUcekI982X1eFW9X1jcCausK4IEpHKJRsSBEfJVnfVnLV.CLQG6l5Hf D_2nzX0z3dn1b.x_Qh768O50YMHcddFyN5cMo2JrTY5ob8QoixM2is5jzBCq 2Q5XV4BZQeagWy7h3rViU_YsaoJ1XhOprZUeLrf8UZpN0eI_U7yYL9L2w3wW HCFNzQQEful4D8FKKqe9Wf.6Cn_uM0lwEc1.pGTwLfjxEuyCOsHc0.diEx6B d0Hlg3hVrcZw1zgGqg9zn7DouaBnA_IPNHTYVI6Xi0QQii8cD5Xtfu71F32u H2pCCvwkzKQ-- Received: from [213.205.70.210] by web111512.mail.gq1.yahoo.com via HTTP; Sun, 18 Sep 2011 11:41:21 PDT X-Mailer: YahooMailWebService/0.8.114.317681 Message-ID: <1316371281.68127.YahooMailNeo@web111512.mail.gq1.yahoo.com> Date: Sun, 18 Sep 2011 11:41:21 -0700 (PDT) From: Dario Teixeira Reply-To: Dario Teixeira To: caml MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-672993426-82257625-1316371281=:68127" Subject: [Caml-list] Newest Sexplib and Hashtbl ---672993426-82257625-1316371281=:68127 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I've updated to the latest version of Sexplib, and the support for hashtabl= e serialisation seems broken or at least changed.=A0 I was accustomed to using the syntax e= xtension for convenient declaration of (de)serialisers, and this worked too for the = Hashtbl module. For example: type dict_t =3D (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 ne= wer versions of Sexplib? Thanks in advance for your time! Best regards, Dario Teixeira ---672993426-82257625-1316371281=:68127 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

=
I've updated to the latest version of Sexplib, and the support for has= htable serialisation
seems broken or at least changed.  I wa= s accustomed to using the syntax extension
for convenient declara= tion of (de)serialisers, and this worked too for the Hashtbl module.
<= div>For example:

type dict_t =3D (key_t, value= _t) Hashtbl.t with sexp

But with Sexplib 7.0.4 thi= s produces an error:

Error: Unbound value Hash= tbl.t_of_sexp

Is this a bug, or must the (de)seria= lisers be declared manually with the newer versions
of Sexplib?

Thanks in advance for your time!
Best reg= ards,
Dario Teixeira

= ---672993426-82257625-1316371281=:68127-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p8IIrxPO018064 for ; Sun, 18 Sep 2011 20:53:59 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao4BAMo8dk7RVaE2imdsb2JhbABCmEqOaAgUAQEBCgkNBxIGIYFTAQEBAQMSAiwBFAcdAQMMBgULDS4hAQERAQUBChIGEyKgFgqLQYJcg107iG0CAwaGcgSTSYoRgnE9hAo X-IronPort-AV: E=Sophos;i="4.68,401,1312149600"; d="scan'208";a="109498727" Received: from mail-fx0-f54.google.com ([209.85.161.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Sep 2011 20:53:54 +0200 Received: by fxg9 with SMTP id 9so5988028fxg.27 for ; Sun, 18 Sep 2011 11:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gJ3z6DPYkh1MPP5s8wSZy/0HvJV3FZElZnQOlOR1+Q4=; b=nB+Wvse+jCquOjnshB6dvs7dkyPEeyC7SuilG4bGijFk5WtNlLf5UciAISnfEiGgZG EFBmApSglffBRFwe9za0qR41fS6VwwVsBkex/Fm8iSqH6NhV7tBiXNCsWJxUVAh/KR6V u07RZd2II9wFoKFAYiM3R2CyDW5jjJqImzWqY= MIME-Version: 1.0 Received: by 10.223.65.141 with SMTP id j13mr309752fai.101.1316372033971; Sun, 18 Sep 2011 11:53:53 -0700 (PDT) Received: by 10.152.19.198 with HTTP; Sun, 18 Sep 2011 11:53:53 -0700 (PDT) In-Reply-To: <1316371281.68127.YahooMailNeo@web111512.mail.gq1.yahoo.com> References: <1316371281.68127.YahooMailNeo@web111512.mail.gq1.yahoo.com> Date: Sun, 18 Sep 2011 14:53:53 -0400 Message-ID: From: Markus Mottl To: Dario Teixeira Cc: caml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p8IIrxPO018064 Subject: Re: [Caml-list] Newest Sexplib and Hashtbl 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 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        markus.mottl@gmail.com