Ignoring part of a group of mutually recursive definitions with ppx_deriving

Hey all,

I’m trying to use the ‘make’ deriver for a single record in a group of mutually recursive type definitions, but the ‘make’ deriver fails if used on non-records. Is there anyway to pass a flag or attribute or something to make it ignore some definitions in the group? Or give it a particular default value for that type?

Simple example:

type foo = bar list 
and bar = { x : foo} [@@deriving make]

If an easy solution exists, does it work on other derivers too?

Best,
Jonathan

2 Likes