[Haskell-cafe] package name in TypeRep?

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Fri Oct 16 13:52:27 EDT 2009

Dear all,

I want a function that produces
the URL of the haddocumentation of a given type, generically.

My solution is that the argument (type) is an instance of Data.Typeable
and I am parsing the output of  show  of the TypeRep, cf.

That stops working when I split my project into several packages.
Is there a way to obtain the package name from the TypeRep?
Because I seem to need it to procuce the correct URL.

Or else, is there a way to merge all the per-package haddock outputs?
Perhaps a pseudo-package that imports all and re-exports everything?

Best - Johannes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20091016/acdaaba3/signature.bin

More information about the Haskell-Cafe mailing list