I have a function f ∷ … ⇒ f α → Either String … — that is to say, the function may return an error description. It would be convenient if the error description included the name of the type α. So therefore I need a function like reflectTypeName ∷ Proxy α → String.
- I found
reflectSymbolthat converts a proxy to a string — but it only works on a special kindSymbol. - I found
reflectthat converts a proxy to something — but I am not sure where to get the suitable instances for it.
So, there is a conspicuous omission of the function that I want. Is it found somewhere else? Or is it impossible to achieve with the current PureScript compiler?