Hacker News new | ask | show | jobs
by marcosdumay 2506 days ago
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.

1 comments

I used Haskell on Emacs a few weeks ago and there still seems to be some issues with regards indentation.
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.

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?
Thanks!