I think you can probably set the flags for the it much more nicely via
http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple-Program.htmland
the haddockProgram record.

heres an example Setup.hs that does something very, similar, in this case
making sure that "-pgmc clang" is passed to ghc always.

that should help!

The difference is you'll probably want this manipulation to be using the
haddockHook field in
http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple.htmlinstead
of the buildHook field.

I hope that helps! :)
(while you're at it, adding the -pgmc clang thing from my example setup.hs
would probably prevent the funny build errors I was hitting, :) )


On Sat, Jun 22, 2013 at 10:21 AM, Benjamin Scarlet <rol...@greynode.net>wrote:

> Distribution.Simple.Setup.HaddockFlags(haddockProgramArgs) is a [(String,
> [String])]. What does it mean?
>
> I've got a package with a largish file which makes haddock blow it's
> stack, so it needs ghc rts options. I can do this on the command line with
> +RTS -K32M -RTS. Can I bake it into my package somehow? I'm trying messing
> with the haddock flags in the haddockHook in the package description, but
> I'm not getting the result I want.
>
> Thanks,
> Ben Scarlet
> _______________________________________________
> cabal-devel mailing list
> cabal-devel@haskell.org
> http://www.haskell.org/mailman/listinfo/cabal-devel
>
_______________________________________________
cabal-devel mailing list
cabal-devel@haskell.org
http://www.haskell.org/mailman/listinfo/cabal-devel

Reply via email to