Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Richard Stoerzer <rstoerzer@yahoo.de>
To: caml-list@inria.fr
Subject: [Caml-list] Re: deriving
Date: Sat, 28 Jan 2012 00:29:06 +0100	[thread overview]
Message-ID: <jfvc07$6ju$1@dough.gmane.org> (raw)
In-Reply-To: <4F22D617.1080802@gmail.com>

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.





  reply	other threads:[~2012-01-27 23:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27 16:51 [Caml-list] deriving Matej Košík
2012-01-27 23:29 ` Richard Stoerzer [this message]
2012-01-29 13:10 ` Lin
2012-01-29 18:11   ` Matej Košík
2012-01-29 18:15     ` Adrien
2012-01-29 18:25       ` Matej Košík
2012-01-29 19:34 ` Richard W.M. Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jfvc07$6ju$1@dough.gmane.org' \
    --to=rstoerzer@yahoo.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox