[Haskell-cafe] getting fulling qualified names of types from hint/ghc api

Pasqualino "Titto" Assini tittoassini at gmail.com
Wed Jan 19 10:31:38 CET 2011


Hi,

I am using hint's Language.Haskell.Interpreter.typeOf function to
dynamically get the type of a haskell expression but, unfortunately
for my purposes, I see that it returns unqualified names (I see in
Hint.Conversions that it uses the GHC function GHC.getPrintUnqual).

Is there any function in the GHC api or any other simple way of
getting the fully qualified types?

Surprisingly, I could not find any.

Thanks,

       titto

-- 
Dr. Pasqualino "Titto" Assini
http://quid2.org/



More information about the Haskell-Cafe mailing list