News for hackers. Stuff that matters.
Re:Show HN: I built a poker site with Haskell by InvOfSmallC on Friday August 09, 2019 @11:30AM (#20655263)
What would be the best IDE/editor for Haskell?
Re:Show HN: I built a poker site with Haskell by BucketSort on Friday August 09, 2019 @01:47PM (#20656667)
We're gonna have AGI before we have a good IDE for Haskell. Spacemacs seems to be the best option at the moment with https://github.com/haskell/haskell-ide-engine.
Re:Show HN: I built a poker site with Haskell by dbelford on Friday August 09, 2019 @12:14PM (#20655683)
I'm curious about this too.

Every once in a while I try going through the editor setups in this chart - https://github.com/rainbyte/haskell-ide-chart. But I run into lots of friction in any one I try. Between using the REPL, getting harmony in the project libraries and the IDE engine libraries, and learning a new editor, I run out of energy to also learn the language ecosystem (libraries, concepts, idioms, package managers).

An IDE that that surfaced everything the language encodes seems like it would lower the learning curve of Haskell. And every year it seems a little closer. Is there anything close to a jetbrains/visual studio/xcode yet?

It seems like all the type safety would be valuable enough that companies would pay for/invest in the ecosystem. Learning the ecosystem has been more challenging than learning the language at this point for me.

Re:Show HN: I built a poker site with Haskell by marcosdumay on Friday August 09, 2019 @03:38PM (#20657631)
Emacs works very well. Haskell is the second best emacs experience I've ever had, second only to Lisp.

Things were not always this way. Just a few years ago, it was a bad experience, so if you have bad memories, it may be time to try again.

Re:Show HN: I built a poker site with Haskell by claudiawerner on Friday August 09, 2019 @04:55PM (#20658195)
I used Haskell on Emacs a few weeks ago and there still seems to be some issues with regards indentation.
Re:Show HN: I built a poker site with Haskell by marcosdumay on Friday August 09, 2019 @06:57PM (#20658888)
Ouch, it has been so long that I have forgot about this. Add this to your emacs init script somewhere:

    (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
It is also not compatible with older versions of intero and haskell-mode, so if you have old configuration there, you may want to remove it.

Honestly, it's even weird this isn't on by default.

Re:Show HN: I built a poker site with Haskell by tome on Saturday August 17, 2019 @04:03AM (#20722823)
That's strange. I don't have anything like that in my .emacs but I do get indentation automatically for Haskell files. I do have a recent dante-mode though. Perhaps dante-mode turns it on automatically?
Re:Show HN: I built a poker site with Haskell by claudiawerner on Friday August 09, 2019 @07:46PM (#20659146)
Thanks!
Re:Show HN: I built a poker site with Haskell by reirob on Monday August 12, 2019 @05:41AM (#20673894)
Editor of your choice in one window and ghcid, which shows compiler errors and warnings on change of file, in another window.

From time to time a web browser to search a function in hoogle [1] and ghci (the interpreter console) to interactively try something out.

Honestly, I come to the conclusion, that at least for Haskell I do NOT need an IDE. I would need it for Java and other imperative languages that have huge libraries.

Haskell is one of the languages where it is a better investment of learning the language that spending time searching a good IDE.

Re:Show HN: I built a poker site with Haskell by namibj on Friday August 09, 2019 @11:54AM (#20655507)
You can use a language server with Atom. Beware of stuff breaking (barely any ABI compatibility), and it taking like 12G ram, however.

Otherwise you can also integrate a language server with Vim or Emacs.

Re:Show HN: I built a poker site with Haskell by mrkeen on Friday August 09, 2019 @12:25PM (#20655793)
Anything that highlights other instances of what you highlight yourself.

My pick is Kate on KDE. But I've been using vscode as well so I'm not tied to OSs that can run Kate.

Re:Show HN: I built a poker site with Haskell by mark_l_watson on Friday August 09, 2019 @03:31PM (#20657589)
I used to love Emacs + Intero but now I use VSCode with the Haskell plugins for syntax hilighting, code completion, and syntax error flagging.
Re:Show HN: I built a poker site with Haskell by c3534l on Friday August 09, 2019 @12:23PM (#20655770)
Vim.
Re:Show HN: I built a poker site with Haskell by jolmg on Friday August 09, 2019 @12:28PM (#20655830)
Yup, that's what I use. Just like for any other language, it works great.
Re:Show HN: I built a poker site with Haskell by nathanyukai on Friday August 09, 2019 @12:30PM (#20655848)
I tried spacemacs with intero for a while, but I'm now using https://github.com/haskell/haskell-ide-engine + vscode + vimmode. Mostly because I'm using vscode in my work and I don't want to invest more into emacs.
Re:Show HN: I built a poker site with Haskell by brewmarche on Friday August 09, 2019 @03:35PM (#20657612)
I use the exact same setup and like it a lot.
Re:Show HN: I built a poker site with Haskell by johnday on Sunday August 11, 2019 @06:58AM (#20667544)
I would contest the other commenters and say that vscode + haskero (intero integration) is the simplest and most robust method of Haskell programming at the moment.

Add in ghcid for continuous builds and it's almost ideal.

Re:Show HN: I built a poker site with Haskell by PeterisP on Friday August 09, 2019 @04:23PM (#20657974)
I used Sublime and it was just fine, I didn't feel the need for anything else.