You can take a look to the tagless final method which can give you a different way to structure your type.
Chimrod
18
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Mapping GADT AST node to list of it's children not allowed by compiler? | 3 | 873 | August 26, 2022 | |
| An AST typing problem | 7 | 2996 | November 2, 2020 | |
| Trees that Grow: Extending and annotating the AST | 2 | 427 | November 25, 2025 | |
| Is it feasible to write parsers without using polymorphic variants for AST representation? | 16 | 2204 | April 25, 2018 | |
| Do I need polymorphic variants? | 18 | 5247 | January 6, 2023 |