Closed hcarty closed 10 years ago
You need to require ppx_import before ppx_deriving.
Ok, thanks. Is that documented? And is there a way around that restriction?
Not really (I considered this obvious, probably it's not). And no.
Now that I look back at it this it makes sense as the import needs to be applied before anything can be derived. It's not obvious that the order of the #require
s implies the order of ppx application. That is probably specified in the ocamlfind documentation somewhere.
I'm actually not sure that it does (it should), but it seemed to work so far.
With OCaml 4.02.0 and the latest utop, ppx_deriving and ppx_import from opam: