[Haskell-cafe] Building documentation only?

Roman Cheplyaka roma at ro-che.info
Mon Mar 9 06:32:12 UTC 2015

That's not possible; haddock uses the ghc api so it needs to be able to
load the dependencies.

If the packages in question never use template haskell, you could try to
install them with -fno-code -fwrite-interface. Otherwise, the next best
thing is to pass -O0.

On 09/03/15 00:18, Andrew Cowie wrote:
> On Mon, Mar 9, 2015 at 3:10 PM, Ivan Lazar Miljenovic
> <ivan.miljenovic at gmail.com <mailto:ivan.miljenovic at gmail.com>> wrote:
>     cabal configure && cabal haddock && ...
> That'll build documentation for the current pwd's project (if there even
> is one), but that doesn't install and build the haddocks for
> dependencies. Well, unless you do `cabal install --only-dependencies`
> first, which brings us back to the original question.
> I'm trying to get a local version of the documentation of all the
> packages I tend to use so I don't need to keep reaching out to
> hackage.haskell.org <http://hackage.haskell.org> while developing
> [offline]. Easily enough done; I'm just trying to skip building the code
> which, in this sandbox, I don't need.
> AfC
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list