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 q282nOXp024731 for ; Thu, 8 Mar 2012 03:49:24 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQBAJwdWE9KfVIqi2dsb2JhbABChUGvbggiAQEBCgsLBxIGI4IKAQEBBBICDx0BGx0BAwwGAwILDQICJgICIQEBEQEFARwGEwgah2ahPQqLKEyCcYUuP4EMAQULgSSICoYggRYEiFKMb4shgxg9hCI X-IronPort-AV: E=Sophos;i="4.73,549,1325458800"; d="scan'208";a="134940951" Received: from mail-ww0-f42.google.com ([74.125.82.42]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Mar 2012 03:49:19 +0100 Received: by wgbds11 with SMTP id ds11so1144266wgb.3 for ; Wed, 07 Mar 2012 18:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zrLbyKVTshIsgoWqJtTaqsACO66aadSvrEpongvipBU=; b=PpS1NcCDebp+qb3X6s6sg/MP9oJ71AZlJFmzEM14xFReA0cmf6Pu0h4V/GgTZ9I9iC cJiw0uRh/env4FKMVawf6XqrDjbHH5AXpTuWvg+KM3qFHX2gGXD1QltEQB/rj/TfNjQY NJ//9c4GWKNuyzLL43P1vvTtIM+Aqu4TFjf9gA7THfYF27dxSuS8+DGR7V7TCRDVxeXc /zNJMi9rfDoq4t6GQvR5ZPfvdlY9mkI3bpFi4k28l3+wcSowkMQdFpzE1rAtwu9pU3Cb 4EU+h/c+Bl0Te1Pn71jRQYG5SbPDe0+3eTQehKvUUEK9N40DNgx7BYY/oPJXsDK8OfQl nsoQ== MIME-Version: 1.0 Received: by 10.180.85.35 with SMTP id e3mr30775638wiz.6.1331174958917; Wed, 07 Mar 2012 18:49:18 -0800 (PST) Received: by 10.180.78.102 with HTTP; Wed, 7 Mar 2012 18:49:18 -0800 (PST) In-Reply-To: <4F579AD0.3040702@gmail.com> References: <4F574B3C.5000207@gmail.com> <4F579054.60203@gmail.com> <4F579AD0.3040702@gmail.com> Date: Wed, 7 Mar 2012 21:49:18 -0500 Message-ID: From: Markus Mottl To: =?UTF-8?B?TWF0ZWogS2/FocOtaw==?= <5764c029b688c1c0d24a2e97cd764f@gmail.com> Cc: Yaron Minsky , Caml List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q282nOXp024731 Subject: Re: [Caml-list] concerning using of `deriving' syntactic plugin On Wed, Mar 7, 2012 at 12:28, Matej Košík <5764c029b688c1c0d24a2e97cd764f@gmail.com> wrote: > If you remove any of the "with sexp" clauses, you will get a > preprocessor error: > >  File "main.ml", line 4, characters 18-23: >  Parse error: "with" expected after [type_declaration] (in [str_item]) >  File "main.ml", line 1, characters 0-1: Till's fix suggestion should work, you'll have to use camlp4o as preprocessor. Btw., you also may want to "open Sexplib.Std" instead of "Sexplib.Conv", which is the "standard" way. Regards, Markus -- Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com