hs-to-coq
hs-to-coq copied to clipboard
Sort defintions more carefully
We have to do a topological sort to mix instance declarations and value declarations, and also to get instance declarations in the right order. Currently, this uses topoSortSentences
. I want to see if I can make this function, or another function, a bit better at preserving the original order, so that we have to emit less order
edits when things are in the right order in the source code already. examples/successors
is an example for that.
Would also fix the problem that the notations for operators are in the wrong order.