[Haskell-cafe] access programs own documentation

Corentin Dupont corentin.dupont at gmail.com
Sun Jan 12 18:11:55 UTC 2014


Hi guys,
I'd like to access, from within my program, the program own haddock
documentation.
>From the cabal autogen path file, I can access the location of the
program's data file, binaries etc. (getBinDir, getLibDir, getDataDir) but
not the location of the doc. How to do that?
For example on my machine:

datadir    = "/home/kau/.cabal/share/i386-linux-ghc-7.6.3/Nomyx-0.4.1"

The documentation is generated in
"/home/kau/.cabal/share/doc/i386-linux-ghc-7.6.3/Nomyx-0.4.1", but it
depends on the configuration.

Thanks,
Corentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140112/bd97eaf9/attachment.html>


More information about the Haskell-Cafe mailing list