I don’t know if what you’ve chosen is the best way of doing this but, pretty much, the standard PPX rewriters (e.g. show) generate code that follows this pattern (at least, that’s my memory).
Chet_Murthy
10
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Extend mutually recursive modules | 2 | 473 | September 11, 2020 | |
| Playing with extensible type | 9 | 531 | May 11, 2025 | |
| Extending recursive functors | 4 | 1708 | January 12, 2019 | |
| A pattern for using GADTs to subset cases | 19 | 1134 | September 17, 2024 | |
| How would I implement a polymorphic recursive modules for generic types? | 10 | 4342 | May 11, 2018 |