English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Sexplib question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-21 (19:31)
From: a non <anon2008123@g...>
Subject: Sexplib question

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
without modifying the code of the Netdate library ?

Best regards