I also use GADTs in my project to represent ASTs with different types of annotations, and use functors for transformations. I think this method is good because you can annotate arbitrary info while ensuring type safety.
You can take a look at github.com/Foundations-...
1 year ago
1
0
1
0