I’m working on a project where Ppxlib, menhir and sedlex need to play nicely together. While there’s some AST that needs Location, I would like to have ppx_deriving.show to the AST type.
As far as I know, this leads me to duplicate Location and Lexing as modules, and add ppx_deriving show to those. Ofcourse, I would need to call them differently Located and Lex which plays very badly with ppxlib (specifically metaquote).
After 500 LOC changes and a bunch of casts from Location.t to Located.t, I start to think it’s a bad idea. Do I have any alternative?
Thanks.