From: "Christoph Höger" <christoph.hoeger@celeraone.com>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] visitors.ppx and ppx_metaquot
Date: Thu, 5 Oct 2017 15:30:02 +0200 [thread overview]
Message-ID: <CAOazmvu89VJsw+xqX-328_hce93hvcqJzEggGUcie=kNbAGXFA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
Dear OCaml users,
today I tried to recompile a project that uses both some janestreet
derivers and visitors.ppx. To my horror, it now fails to compile with an
error about the visitors argument:
utop # #require "visitors.ppx";;
utop # type foo = int list [@@deriving visitors {variety="reduce"}];;
Error: Reference to undefined global
`VisitorsRuntime'
utop # #require "ppx_sexp_conv";;
utop # type foo = int list [@@deriving visitors {variety="reduce"}];;
Error: non-optional labeled argument expected
There is another error that might be related when I try it combination with
ppx_metaquot:
utop # #require "visitors.ppx";;
utop # type foo = int list [@@deriving visitors {variety="reduce"}];;
Error: Reference to undefined global
`VisitorsRuntime'
utop # #require "ppx_metaquot";;
utop # type foo = int list [@@deriving visitors {variety="reduce"}];;
Error: Attribute `deriving' was not used
The first error looks like ppx_type_conv gets confused about what is a
janestreet deriver and what is something else. The second error, well I
have no idea...
Does anyone know a workaround?
thanks,
Christoph
[-- Attachment #2: Type: text/html, Size: 2340 bytes --]
next reply other threads:[~2017-10-05 13:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 13:30 Christoph Höger [this message]
2017-10-06 8:29 ` Emilio Jesús Gallego Arias
2017-10-06 13:15 ` Gabriel Scherer
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='CAOazmvu89VJsw+xqX-328_hce93hvcqJzEggGUcie=kNbAGXFA@mail.gmail.com' \
--to=christoph.hoeger@celeraone.com \
--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