TH instance reification - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sandy Maguire

Anyone have a good implementation of reifyInstances on hand?

Sandy Maguire

looking to not need to chase the instance graph

TheMatten

Info doc says that it contains visible instances in ClassI

Sandy Maguire

yes but it is not helpful :)

Sandy Maguire

it returns the instance dec

Sandy Maguire

eg if i reify looking for the instance Monoid (Identity Int)

Sandy Maguire

it will give me back instance Monoid a => Monoid (Identity a)