Hi folks! I’m a relatively new Haskeller (2-ish years), and I’ve used Stack for most of my projects so far. I love the isolation, the reproducibility of builds, the UX generally… it all works great for me. I’m a fan of hpack, Stackage, and its other ancillary bits as well.
EXCEPT. It is so frustrating to use Stack with HLS. The issues are well-documented (in the HLS docs, on Github, on various comments here, etc.) and seems to be pretty widely acknowledged.
I don’t want to get into specific “fixes” in this thread – I’ve tried all the magical incantations of restarting the language server, restarting my editor, defining an hie.yaml
, deleting caches, stack purge && stack build
and restart everything again, and so on. Sometimes it works, sometimes it doesn’t. Even when it does, it’s very disruptive.
So what I’m really wondering is:
- Is there hope for the Stack/HLS issues being fixed? Or a better question: is there any active work on this problem currently? I’ve found this issue on the Stack GH page which seemed very promising until I realized it hadn’t been touched in a year.
- Do people still recommend Stack at all? If so, how do you actually develop with it? Do you use HLS? Just grin and bear the issues?
- Do people still recommend Stack for new Haskell users? I personally ran into issues immediately using Stack and HLS… the default “stack new” project has multiple components and is therefore broken (with HLS).
- Can/should we raise the visibility of this issue for new users? And how? I feel like we should be shouting this from the rooftops. As a new user, I was utterly confused about the obtuse-sounding errors I’d get using the recommended (at least at the time) “default” Haskell toolchain. And my searches yielded years-old, still-open Github issues with no clear path forward for me as a user.
I don’t yet feel equipped to help as a developer, but I’m hoping posting this here will at least aid with the visibility a bit, if new users come across this. Or maybe prod the discussion along a bit.
Also, this might be impossible, but… I would love if some of the folks involved could help give more definitive insight, like: “Oh yeah, we’re working on that but it’s a HUGE effort and will take years” or “No, that’s back-burnered, don’t hold your breath,” etc. I think that would help people starting new projects or researching the effort to switch from Stack to Cabal.
Anyway… sorry for the long-winded post. I appreciate any insights you all might have!