r/programming • u/iamkeyur • Jun 08 '20
The Pain Points of Haskell: A Practical Summary
https://dixonary.co.uk/blog/haskell/pain0
Jun 09 '20
No that can't be! Haskell is literally the holy grail of languages, it has FUCKING MONADS!!! IT MUST BE GOOD OR COOL OR PERFECT
-1
u/audion00ba Jun 09 '20
The Haskell community has always been rather delusional. Just look at the title of this page:
See that s at the end? It suggests there is more than one! Now, examine the page and notice that none of them would qualify as an IDE like Visual Studio or IntelliJ.
A more honest way of naming that page would be "Collection of broken and or failed attempts at IDEs".
3
u/CarolusRexEtMartyr Jun 09 '20
Uh, what about the IntelliJ plugin listed? I find Haskell editor support great.
0
u/audion00ba Jun 09 '20
That's written in Scala. The hypothesis is that Haskell is such a great programming language/environment, but all the IDEs written in it are failures.
Most of the IDEs not written in the language they are about tend to lose a maintainer after enough years.
0
Jun 08 '20
[deleted]
6
u/dixonary Jun 08 '20
I would say so! If you can find a lightweight tooling setup that feels ergonomic for you, then (re)learning Haskell will be at least interesting, and probably very valuable for you as a programmer.
(nb: I'm the author of the article)
1
Jun 10 '20
FWIW, I’m enjoying the haskell-ide-engine in VS Code.
2
u/dixonary Jun 10 '20
I spent three full hours trying to get it working (again) yesterday. After spending > 1 hour compiling on my fairly competent machine, it turns out that the version of ghc I compiled it with, which is also the version available through my package manager, is incompatible with it.
1
Jun 10 '20
That’s surprising. Can I ask what
stack ./install.hsinvocation you used?2
u/dixonary Jun 10 '20
Built with the cabal rather than stack, and I just followed the instructions in the readme.
2
Jun 10 '20
Gotcha. I haven’t had much luck with Cabal generally, but let me have a look this evening and see what I can learn.
2
u/dixonary Jun 10 '20
I'll be interested to find out! In response to the article people have been telling me that both hie and cabal are fit for purpose in their current iteration, but that is not my continued experience.
1
Jun 10 '20
So given a current haskell-ide-engine checkout as of an hour or so ago, I did:
./cabal-hie-install hie-8.6.5and it built successfully, at least after I did a
cabal update.This is with GHC 8.6.5 and:
cabal-install version 3.2.0.04
u/N0xxi0us Jun 08 '20
I know people that work on a project entirely done in Haskell. They love it and each time they have to go back to java to give a hand on another project it's a real pain, they miss haskell's features so much.
I did a few beginner stuff with haskell and I understand the appeal, however when you then look at job offers, there isn't much unless I start looking abroad (I live in France).
So it really depends on your situation I'd say
3
u/AttackOfTheThumbs Jun 08 '20
No. I used it at Uni as well, did some cool pet projects, then later tried to use it professionally. It's not worth it unless you have a workplace that actively supports it.
2
u/pi3r Jun 11 '20
My biggest issue with Haskell is the lack of consensus on most important day2day routines such as:
- dealing with exceptions
- dealing with records
- dealing with what is called "Effects"
To a less extend, there are also no consensus on naming conventions in general (imports, ...)
This creates a fair amount of interesting noise but doesn't help on day2day productivity.
I think IDE/tooling are less and less a problem and I am quite confident that the situation will go on improving on that side.
That said I have never been an Professional Haskellers so this is to take with a grain of salt ;-)