[Haskell-cafe] Reify type

Jose A. Lopes jabolopes at google.com
Fri Jul 12 13:45:44 CEST 2013


Hello everyone,

Is there a way to automatically reify a type ?
In other words, to do the following:

reifyType (LitT ...) = ConT ''LitT ...

I am using Template Haskell and I want the generated code to have
access to Type datatypes that were available to the Template Haskell
code.

Cheers,
Jose



More information about the Haskell-Cafe mailing list