[Haskell-cafe] ghc api printing of types
Phyx
lonetiger at gmail.com
Sun Jul 4 07:36:45 EDT 2010
I was wondering how given a Type I can get a pretty printed type out of it.
I'm currently using showSDocUnqual . pprType . snd . tidyOpenType
emptyTidyEnv
But this has the problem that predicates don't get printed, anyone know how
GHCi does this?
Thanks,
Phyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100704/8c06d154/attachment.html
More information about the Haskell-Cafe
mailing list