<html><head></head><body>Stack is broken in WSL1, but I can use an older cabal just fine. So now I work on the same projects with stack on my linux laptop and cabal on my Windows desktop.<div style='white-space: pre-wrap'>-- Keith<br>Sent from my phone with K-9 Mail.</div><br><br><div class="gmail_quote">On 18 September 2021 18:52:24 UTC, Alexis Praga <alexis.praga@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi,<br>
<br>
As an intermediate beginner, I've been back into Haskell for the last<br>
months for a small project, using stack as the building tool.<br>
<br>
Why stack ? A few years back, I learned that it was the "best" way to build<br>
projects to avoid "cabal hell", which I understood at the time as<br>
"managing dependencies with cabal is hard".<br>
<br>
As such, I've use stack since and have been quite happy with it. The<br>
only drawback is that building a project can be quite long.<br>
<br>
This is usually not a problem, except for writing Haskell scripts using<br>
shelly (for example), where the stack layout is a bit impractical for<br>
fast-paced development. A solution is to use `runghc` or a script<br>
interpreter [1].<br>
<br>
However, I've seen some projects where cabal is used to build directly<br>
instead of cabal, so it looks like the situation improved.<br>
<br>
My question is this: in 2021, is there a reason to switch back to cabal ?<br>
<br>
Thanks,<br>
<br>
[1] <a href="https://www.fpcomplete.com/haskell/tutorial/stack-script/" rel="noreferrer" target="_blank">https://www.fpcomplete.com/haskell/tutorial/stack-script/</a><font color="#888888"><br></font><br clear="all"></div></blockquote></div></body></html>