modern haddock and stack

120 views
Skip to first unread message

Yann Esposito

unread,
May 13, 2016, 3:05:24 PM5/13/16
to Commercial Haskell
Hi!

A few month ago `lamefun` made an attempt to provide a modern CSS for haddock:


I wanted to try it, but I didn't found a way to pass parameters to `haddock` (like css) neither tell stack which `haddock` executable to use, I made an attempt with `export HADDOCK_PATH="$HOME/.local/bin/haddock"` with no success.

I couldn't found any hint in the stack documentation.

So is it possible and how?

Thanks!

Michael Snoyman

unread,
May 17, 2016, 8:13:29 AM5/17/16
to Yann Esposito, Commercial Haskell
I'm not aware of any way to do this right now, but it shouldn't be hard to add. Want to open up an issue and/or PR?

--
You received this message because you are subscribed to the Google Groups "Commercial Haskell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commercialhask...@googlegroups.com.
To post to this group, send email to commerci...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/commercialhaskell/e2255e86-7481-45c4-8c89-c26b16467b6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yann Esposito

unread,
May 19, 2016, 6:14:13 AM5/19/16
to Commercial Haskell, yann.e...@gmail.com, mic...@snoyman.com
Yes, done, so now you can:

~~~
stack haddock --haddock-arguments "--css $PWD/my.css"
~~~

Michael Snoyman

unread,
May 19, 2016, 8:15:10 AM5/19/16
to Yann Esposito, Commercial Haskell
Reply all
Reply to author
Forward
0 new messages