What are the requirements of Type_conv.add? I'm doing this:
let () =
Type_conv.add "mycodegen"
|> Type_conv.ignore
which I was hoping would be a noop. However, I get the error:
[%%ocaml.error
let _ = "Type declarations in structures not supported by deriver mycodegen"
let _ = ""]
File "_none_", line 1:
Type declarations in structures not supported by deriver mycodegen
I've tried adding the following str_type_decl, but I get the same error.
let str_type_decl : (structure, rec_flag * type_declaration list) Type_conv.Generator.t =
Type_conv.Generator.make_noarg (fun ~loc:_ ~path:_ _ ->
Type_conv.Generator_result.make_just_after [%str let x = 42]
)