Quantcast

modern haddock and stack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

modern haddock and stack

Yann Esposito
Hi!

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

- [Reddit Post](https://www.reddit.com/r/haskell/comments/42usvl/an_attempt_at_a_modern_haskell_theme_continued/)
- repository: https://github.com/lamefun/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!

--
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: modern haddock and stack

Michael Snoyman
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?

On Fri, May 13, 2016 at 10:05 PM Yann Esposito <[hidden email]> wrote:
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!

--

--
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: modern haddock and stack

Yann Esposito
Yes, done, so now you can:

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


On Tuesday, May 17, 2016 at 2:13:29 PM UTC+2, Michael Snoyman wrote:
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?

On Fri, May 13, 2016 at 10:05 PM Yann Esposito <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="61geLljECAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">yann.e...@...> wrote:
Hi!

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

- [Reddit Post](<a href="https://www.reddit.com/r/haskell/comments/42usvl/an_attempt_at_a_modern_haskell_theme_continued/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.reddit.com%2Fr%2Fhaskell%2Fcomments%2F42usvl%2Fan_attempt_at_a_modern_haskell_theme_continued%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_C4OmRNZCkc-_DXAmtXdEn7vHeg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.reddit.com%2Fr%2Fhaskell%2Fcomments%2F42usvl%2Fan_attempt_at_a_modern_haskell_theme_continued%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_C4OmRNZCkc-_DXAmtXdEn7vHeg&#39;;return true;">https://www.reddit.com/r/haskell/comments/42usvl/an_attempt_at_a_modern_haskell_theme_continued/)
- repository: <a href="https://github.com/lamefun/haddock" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Flamefun%2Fhaddock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHgrTucgRRWtRl06u79NiExqf-E-w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Flamefun%2Fhaddock\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHgrTucgRRWtRl06u79NiExqf-E-w&#39;;return true;">https://github.com/lamefun/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!

--

--
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: modern haddock and stack

Michael Snoyman

Awesome


On Thu, May 19, 2016, 1:14 PM Yann Esposito <[hidden email]> wrote:
Yes, done, so now you can:

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


On Tuesday, May 17, 2016 at 2:13:29 PM UTC+2, Michael Snoyman wrote:
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?

On Fri, May 13, 2016 at 10:05 PM Yann Esposito <[hidden email]> wrote:
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!

--

--

--
Loading...