[Haskell-cafe] How to determine the right path to haddock html documentation?

Roman Cheplyaka roma at ro-che.info
Sat Dec 14 14:02:15 UTC 2013


* Carlo Hamalainen <carlo at carlo-hamalainen.net> [2013-12-14 14:52:04+0100]
> On 13/12/13 23:28, Roman Cheplyaka wrote:
> > String is defined in GHC.Base, but GHC.Base is an internal (not exposed)
> > module of the base package; that's why there's no documentation for it.
> 
> Right.
> 
> > Instead of asking where the thing is defined, you should be asking where
> > it's exported from. In this case, String is re-exported from Prelude.
> 
> To do this will I have to dig into the GHC API?

Yes.

haskell-names can also do this (it's used in halberd to solve a similar
task: https://github.com/haskell-suite/halberd)

But since ghc-mod is based on the GHC API, you should probably stick to
it.

I'm not familiar with the GHC API either; hopefully, someone else will
help you here.

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131214/fe5ff3fa/attachment.sig>


More information about the Haskell-Cafe mailing list