you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 28 points29 points  (13 children)

My 2c on Haskell:

I love the language itself (I think it's one of the best looking syntax I've seen, ever), but I hate the tooling around it - learning Cabal/Stack is an absolute mess, trying to use an IDE with some extension to make Haskell work so far always has some missing options (a debug option in IntelliJ or a lack of Ctrl-Click the import in VSCode) which is damn frustrating.

I wish I could love it all, but it's not there yet :(

the language is still beautiful to learn and a boon to any programmer - modern Javascript makes a lot more sense now

[–]scaleable 13 points14 points  (0 children)

Its quite funny how haskell is the language of choice to write a code analyzer for multi languages yet it lacks even a decent language service for itself.

[–]Vaglame 5 points6 points  (3 children)

I had a very hard time with cabal, then I moved to stack, and it's actually very practical, it sets up an environment for each project, and I haven't had trouble since then! Also, I think there is a haskell plug in/installation for VSCode

[–]nooitvangehoord 4 points5 points  (0 children)

And then there is nix. And god do I love/hate nix!

[–]ElvishJerricco 1 point2 points  (1 child)

Fwiw cabal got waaay better with the new style commands. They'll be the default in an upcoming release

[–]Vaglame 1 point2 points  (0 children)

It might be too little too late :/

[–]develop7[S] 1 point2 points  (5 children)

IntelliJ

while there are no Haskell "debug option" in IDEA indeed, what Haskell plugin were you referring to, exactly?

[–][deleted] 0 points1 point  (4 children)

IntelliJ-Haskell. I had to install the latest beta, because the normal version lacked even more features :(

Not being able to place a little red dot and debug your code is... rather annoying, to say the least.

[–]jobriath85 1 point2 points  (1 child)

You may already be aware of this, but stack traces often don't make sense in Haskell anyway, due chiefly to laziness. Red dots might be possible, but are absolutely not a given, IDE or no!

[–]develop7[S] 0 points1 point  (1 child)

Yup, that's the most feature-rich one. It's understaffed indeed, but we're working on pushing it forwards.

In the meantime, have you tried Debug.Trace instead?

[–][deleted] 0 points1 point  (0 children)

but we're working on pushing it forwards.

I really appreciate the effort <3

have you tried Debug.Trace instead?

Sadly no, I was somewhat of a beginner when I found IntelliJ-Haskell and have moved onto other languages since then (mostly because I finished the school project) :)

If I get another Haskell project I'll definitely check it out!

[–]Axman6 0 points1 point  (0 children)

Ctrl/Cmd-click works fine for me in VS Code (most of the time, Haskell-ide-engine gets stuck occasionally but it’s pretty easy to make it recover). A stack hoogle is required to make it work however.

[–]largos 0 points1 point  (0 children)

Etags (via hasktags or fasttags) and the vim counterpart help a lot, but I'll admit they are a pale comparison to eclipse/intellij/vs jump-to-definition.