Closed ocramz closed 2 years ago
Adding a small dependency
https://hackage.haskell.org/package/micro-recursion-schemes
(which in turn only depends on template-haskell and th-abstraction)
gives us generic traversals, folds and unfolds, which are handy for processing ASTs.
Adding this turns out to be a lot of work, to accommodate mutually-recursive types and for uncertain payoff.
Adding a small dependency
https://hackage.haskell.org/package/micro-recursion-schemes
(which in turn only depends on template-haskell and th-abstraction)
gives us generic traversals, folds and unfolds, which are handy for processing ASTs.