Would be pretty useful for writing custom PreProc functions. These enable you to do generic tree traversals a-la gplate or uniplate.
Or even more simply, make use of any other typeclasses that have generic deriving. For example, I have a PreProc function that omits some elements in particularly long lists, and instead inserts a hash of the omitted contents. To have Hashable Value would require either an orphan or an additional dependency for pretty-show. If I had Generic I could at least use GHashable (Rep Value).
Would be pretty useful for writing custom
PreProc
functions. These enable you to do generic tree traversals a-lagplate
oruniplate
.Or even more simply, make use of any other typeclasses that have generic deriving. For example, I have a
PreProc
function that omits some elements in particularly long lists, and instead inserts a hash of the omitted contents. To haveHashable Value
would require either an orphan or an additional dependency forpretty-show
. If I hadGeneric
I could at least useGHashable (Rep Value)
.