<div dir="ltr">oops, forgot to link to my example setup.hs <a href="https://gist.github.com/cartazio/5842786">https://gist.github.com/cartazio/5842786</a> there yah go</div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Sat, Jun 22, 2013 at 6:09 PM, Carter Schonwald <span dir="ltr">&lt;<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I think you can probably set the flags for the it much more nicely via <a href="http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple-Program.html" target="_blank">http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple-Program.html</a> and the haddockProgram record.<div>


<br></div><div>heres an example Setup.hs that does something very, similar, in this case making sure that &quot;-pgmc clang&quot; is passed to ghc always.</div><div><br></div><div>that should help!</div>
<div><br></div><div>The difference is you&#39;ll probably want this manipulation to be using the haddockHook field in <a href="http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple.html" target="_blank">http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-Simple.html</a> instead of the buildHook field.</div>


<div><br></div><div>I hope that helps! :) </div><div>(while you&#39;re at it, adding the -pgmc clang thing from my example setup.hs would probably prevent the funny build errors I was hitting, :) )</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 22, 2013 at 10:21 AM, Benjamin Scarlet <span dir="ltr">&lt;<a href="mailto:roll10@greynode.net" target="_blank">roll10@greynode.net</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Distribution.Simple.Setup.HaddockFlags(haddockProgramArgs) is a [(String, [String])]. What does it mean?<br>
<br>
I&#39;ve got a package with a largish file which makes haddock blow it&#39;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&#39;m trying messing with the haddock flags in the haddockHook in the package description, but I&#39;m not getting the result I want.<br>



<br>
Thanks,<br>
Ben Scarlet<br>
_______________________________________________<br>
cabal-devel mailing list<br>
<a href="mailto:cabal-devel@haskell.org" target="_blank">cabal-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/cabal-devel" target="_blank">http://www.haskell.org/mailman/listinfo/cabal-devel</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>