Is it possible to set a constraint on type:
data T a = T a
So that a
could be only types that have instances on certain type class C
. Though I'm not sure if it is even relevant, but couldn't find info about it. If it is not possible what is a simple explanation of this?