The question is in the title. Given a type, is there a way to find all the typeclasses it instantiates. I'm try to get the list of fields generated by makeField
(lens
).Example
data Point = Point { _x :: Double, _y :: Double } deriving (Show).
I would like given Point
to get [HasX, HasY, Show]
.
Alternatively, is there a way to get all the Name
in scope ?