I want to convert any type to a type level string using some type families.
Of course, I can write something like this:
type family ShowType (t :: Type) :: Symbol where ShowType Int = "Int" ShowType String = "String" ...
But I wonder if there is any existing mechanism for this? I can do this at runtime using Typeable methods. But how can I automatically convert any type to Symbol ?
source share