From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr 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 q0RNZKTM014522 for ; Sat, 28 Jan 2012 00:35:21 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwEAJ0zI09QW+UMgWdsb2JhbABEhQupSyIBARYmJYFyAQEFI2YJAhoCJgICEBE2GYd+pj9IkRKBL4dgBwMFBgEDDgYJAQgBBgQDAwQfAwEChA8HVIIGgRYElRqLAgOHSQ X-IronPort-AV: E=Sophos;i="4.71,583,1320620400"; d="scan'208";a="141771136" Received: from lo.gmane.org ([80.91.229.12]) by mail1-smtp-roc.national.inria.fr with ESMTP; 28 Jan 2012 00:35:15 +0100 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RqvK6-0008IE-9O for caml-list@inria.fr; Sat, 28 Jan 2012 00:35:14 +0100 Received: from p57ae7e7d.dip.t-dialin.net ([87.174.126.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Jan 2012 00:35:14 +0100 Received: from rstoerzer by p57ae7e7d.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Jan 2012 00:35:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Richard Stoerzer Date: Sat, 28 Jan 2012 00:29:06 +0100 Organization: - Message-ID: References: <4F22D617.1080802@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p57ae7e7d.dip.t-dialin.net X-Newsreader: Claws Mail 3.8.0 (GTK+ 2.24.6; x86_64-pc-linux-gnu) X-Archive: encrypt Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q0RNZKTM014522 X-Validation-by: rstoerzer@yahoo.de Subject: [Caml-list] Re: deriving On Fri, 27 Jan 2012 16:51:35 +0000 Matej Košík <5764c029b688c1c0d24a2e97cd764f@gmail.com> wrote: > $ ocamlc -I +deriving -pp "camlp4of -I `ocamlc -where`/deriving > nums.cma deriving.cma" deriving.cma Main.ml -o main Just take a look at the examples under "./test". deriving ships with an own preprocessor: e.g: ocamlc -pp "deriving" -I $DERIVING_DIR deriving.cma mail.ml -o main Or use the version, that is provided by the ocsigen team ( http://ocsigen.org/download/ ) This one is findlib friendly and supports the toplevel without hassle.