From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=HTML_10_20,HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 16B9EBBCA for ; Fri, 21 Mar 2008 20:31:37 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At8AAEuq40dC+VLqjWdsb2JhbACCOzeOHQEBAQEJAwkJFJJ2hgI X-IronPort-AV: E=Sophos;i="4.25,536,1199660400"; d="scan'208";a="24057069" Received: from wx-out-0506.google.com ([66.249.82.234]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Mar 2008 20:31:10 +0100 Received: by wx-out-0506.google.com with SMTP id h27so1533438wxd.15 for ; Fri, 21 Mar 2008 12:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=nya24bptO4LFDKav5Dqk8A8/cygZP8rwdrX+O5GYwsc=; b=QpmpFIYqCvX/U7pU3IMi7OJ6ktGT1VYL5NsTiZz+5W7BgjLSigZF6gOaYkv0XoWdfY9l2jXkh7CepOESLoM7Bywexbmrp8z8lYjc30DfQMaDleMyLzBpPbUPEPaNldD36sdFFyB1BHM6KXppibA9IP9xFv1xErjXbSbfu26ZEJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=a6n0quNugLxFV4/qKNvBth932sZwL3FkZjTar8fJf7zDA+rog4jHpwwQyJ7euVJlzZ6aWUBjjrjX653CSRF1XrTbIKiKp11+uHUSjzP5qHoGP1KwB66/+akxrAj6dZv81fNkPDKsgcX90u8SJKkzotQIEGFDIGpNg7Lnzqfpy8I= Received: by 10.141.71.8 with SMTP id y8mr1586983rvk.32.1206127868733; Fri, 21 Mar 2008 12:31:08 -0700 (PDT) Received: by 10.140.193.20 with HTTP; Fri, 21 Mar 2008 12:31:08 -0700 (PDT) Message-ID: Date: Fri, 21 Mar 2008 20:31:08 +0100 From: "a non" To: caml-list@yquem.inria.fr Subject: Sexplib question MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1769_23578526.1206127868746" X-Spam: no; 0.00; ocamlnet:01 sexp:01 sexp:01 ocamlnet:01 anon:98 threads:01 threads:01 unbound:01 unbound:01 functions:01 functions:01 compiling:02 compiling:02 anders:02 anders:02 ------=_Part_1769_23578526.1206127868746 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi I have been following the threads about sexplib/deriving with interest and have a question about using sexplib with existing libraries. Example: If I want to use sexplib with values of type Netdate.t (a date type from the ocamlnet library) and try the following: type v = { name : string; created_at : Netdate.t} with sexp then I get the following error when compiling: Unbound value Netdate.t_of_sexp My question is, what is the easiest way to generate the sexp functions for Netdate.t, without modifying the code of the Netdate library ? Best regards Anders ------=_Part_1769_23578526.1206127868746 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi

I have been following the threads about sexplib/deriving with interest and have a question
about using sexplib with existing libraries.

Example: If I want to use sexplib with values of type Netdate.t (a date type from the ocamlnet
library) and try the following:

   type v = { name : string; created_at : Netdate.t} with sexp

then I get the following error when compiling:

     Unbound value Netdate.t_of_sexp

My question is, what is the easiest way to generate the sexp functions for Netdate.t,
without modifying the code of the Netdate library ?

Best regards
Anders
------=_Part_1769_23578526.1206127868746--