caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Is it possible to get back some OCaml code after ppx processing ?
@ 2016-03-23 16:39 Francois Berenger
  2016-03-23 17:02 ` Louis Roché
  2016-03-23 17:05 ` Nicolas Ojeda Bar
  0 siblings, 2 replies; 5+ messages in thread
From: Francois Berenger @ 2016-03-23 16:39 UTC (permalink / raw)
  To: caml-list

Dear list,

I am completely new to the -ppx option of the compiler, so please
forgive in advance my (probably stupid) two questions.

Here is some example code:
---
type t = {
   i: int;
   f: float
} [@@deriving sexp]
---

1) I'd like to see all the functions automatically created
by the magical spell "[@@deriving sexp]".
At least their names and type signatures would be nice.
How to do that?

2) If that's not possible, I'd like to get back some
OCaml code corresponding to the AST after ppx processing.
If that's possible, how to do that?

Thanks a lot,
Francois.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-24 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23 16:39 [Caml-list] Is it possible to get back some OCaml code after ppx processing ? Francois Berenger
2016-03-23 17:02 ` Louis Roché
2016-03-24  9:27   ` Goswin von Brederlow
2016-03-24 10:37     ` Jeremie Dimino
2016-03-23 17:05 ` Nicolas Ojeda Bar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).