Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Sexplib and types defined via constraint
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-07-25 (20:04)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] Sexplib and types defined via constraint
On Fri, Jul 25, 2008 at 8:31 AM, Dario Teixeira <> wrote:
> But consider the module fragment below; type t is defined via a constraint,
> and includes a type parameter ('b) used as a phantom type.  The Sexplib syntax
> extension fails to parse the definition of t, producing an error:
> Failure: "get_tparam_id: not a type parameter"
> Preprocessing error on file

Thanks for reporting this, this is a bug in type-conv (i.e. affects
bin-prot, too).  Though we also make use of variance annotations, we
have surprisingly never used them in structures, only in signatures.
That's why this bug went unspotted until now.

An updated version is online already, including the Godi-package.

Best regards,

Markus Mottl