caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] visitors.ppx and ppx_metaquot
@ 2017-10-05 13:30 Christoph Höger
  2017-10-06  8:29 ` Emilio Jesús Gallego Arias
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Höger @ 2017-10-05 13:30 UTC (permalink / raw)
  To: OCaml Mailing List

[-- 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 --]

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

end of thread, other threads:[~2017-10-06 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 13:30 [Caml-list] visitors.ppx and ppx_metaquot Christoph Höger
2017-10-06  8:29 ` Emilio Jesús Gallego Arias
2017-10-06 13:15   ` Gabriel Scherer

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).