[Haskell-cafe] Is it possible to print out types of instances in scope

Keean Schupke k.schupke at imperial.ac.uk
Sun Jan 16 13:42:59 EST 2005


Jeremy Shaw wrote:

>Neat! Is there some way I can get access to that information from
>within my program ? Maybe something like:
>
>import Language.Haskell.TH.Syntax
>instancesOf :: Name -> [Type]
>  
>
You should be able to use the FFI to import the function from the RTS
just like the run time loader library uses ghci's load and link functions.

    Keean.


More information about the Haskell-Cafe mailing list