Dear Haskell-café,I'm trying to get some information of the kinds of types in a program. In particular, I want to obtain the kinds of arguments to type family instances, that is, given:
type family F a b :: Nat
type instance F (List k) b = b
I would like to obtain the kinds of "k" and "b" in the left-hand side of the type instance.
Thus, the specific question is: given a HsType, can I obtain its kind somehow?
Thanks in advance