[Haskell-cafe] Accessing own haddock files
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Fri Nov 1 18:04:29 UTC 2013
On 01/11/13 17:41, Corentin Dupont wrote:
> Hi the list,
> I have an application that need to access its own haddock documentation (to
> display on a web site).
> What is the best way to do that?
> Unfortunatly Cabal doesn't seem to provide that.
>
> Cabal generates a file "<package name>_Path.hs" containing:
>
> *bindir = "/home/kau/.cabal/bin"
> libdir = "/home/kau/.cabal/lib/Nomyx-Language-0.4.0/ghc-7.6.3"
> datadir = "/home/kau/.cabal/share/Nomyx-Language-0.4.0"*
>
> But there is no:
> *docdir = "/home/kau/.cabal/share/doc/Nomyx-Language-0.4.0"*
>
> That would be handy in my situation :)
>
> Best,
> Corentin
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
Oops, didn't reply to the list. Here goes again:
You can use ‘cabal haddock’ command which provides --haddock-options.
You can then use that to use Haddock's --odir flag.
--
Mateusz K.
More information about the Haskell-Cafe
mailing list