carter.schonwald at gmail.com
Sun Jun 23 00:10:13 CEST 2013
oops, forgot to link to my example setup.hs
https://gist.github.com/cartazio/5842786 there yah go
On Sat, Jun 22, 2013 at 6:09 PM, Carter Schonwald <
carter.schonwald at gmail.com> wrote:
> I think you can probably set the flags for the it much more nicely via
> http://hackage.haskell.org/packages/archive/Cabal/220.127.116.11/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/18.104.22.168/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 <roll10 at 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.
>> Ben Scarlet
>> cabal-devel mailing list
>> cabal-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cabal-devel