Live data from Hacker News

Intero for Emacs: complete interactive development program for Haskell

commercialhaskell.github.io

1–10 of 75 posts

Re: Intero for Emacs: complete interactive development program for Haskell

#2
I saw this notice on Reddit early yesterday morning and ended up using Intero for most of the day. Love it! There are a lot of improvements over and above the Emacs Haskell mode. I really like how fast it is to control-c-l and be put n the correct module and be running in seconds. I also like the realtime syntax error hints, type information, etc.

Re: Intero for Emacs: complete interactive development program for Haskell

#3
There should be a warning that on first start of intero-mode, this will initiate a rather long stack operation, which I suppose is extra long if you hadn't used stack before. Also, it seems to insist on a stack'ised project. But I suppose one could say that should be obvious. I use cabal because stack misses some features and is a little weird and use stack when I have to. And even though I have intero installed and in $PATH, when opening an actual project with a stack file, it start building intero. Weird automatism.

Re: Intero for Emacs: complete interactive development program for Haskell

#4
This looks great! My only complaint is that sometimes I do want to work on a quick script outside of a stack environment, and this seems like an all-or-nothing proposition. (I use haskell for pandoc filters quite a bit, for example, and setting up stack for that seems like overkill.) I'm sure a bit of elisp could make it fall back to haskell mode if it can't find a local .stack dir.

Re: Intero for Emacs: complete interactive development program for Haskell

#6
Looks like I've got a choice to make (all on NixOS):

+ Stick with NeoVim and hope one of the Intero ports to that editor takes off (as I understand it there are a couple right now)

+ Switch to Emacs+Evil+Intero. I've never used Emacs before (even with Evil) so it would be a little work.

If someone more up-to-date on the situation has advice that would be awesome:)

Re: Intero for Emacs: complete interactive development program for Haskell

#7
post #6

Looks like I've got a choice to make (all on NixOS): + Stick with NeoVim and hope one of the Intero ports to that editor takes off (as I understand it there are a couple right now) + Switch to Emacs+Evil+Intero. I've never used Emacs before (even with Evil) so it would be a little work. If someone more up-to-date on the situation has advice that would be awesome:)

I'd also be curious to know if there is any way to support vim plugins in evil mode.

Re: Intero for Emacs: complete interactive development program for Haskell

#8
post #5

I've been waiting for this release before finally trying to switch from Vim (MacVim) to Spacemacs. Anybody have any tips for somebody who's never really used Emacs?

Map command key to caps lock. Setting

(global-set-key (kbd "M-P") 'scroll-down-line)

(global-set-key (kbd "M-N") 'scroll-up-line)

Has also been indispensable for scrolling (though you may choose to do so differently, coming from vim).

Re: Intero for Emacs: complete interactive development program for Haskell

#9
post #5

I've been waiting for this release before finally trying to switch from Vim (MacVim) to Spacemacs. Anybody have any tips for somebody who's never really used Emacs?

My experience was very straightforward. It's easy to configure for most scenarios if you follow the documentation and use any of its layers (see https://github.com/syl20bnr/spacemacs/tree/master/layers). Most Vim key bindings work beautifully. For be its best feature is how discoverable it is.

Re: Intero for Emacs: complete interactive development program for Haskell

#10
post #6

Looks like I've got a choice to make (all on NixOS): + Stick with NeoVim and hope one of the Intero ports to that editor takes off (as I understand it there are a couple right now) + Switch to Emacs+Evil+Intero. I've never used Emacs before (even with Evil) so it would be a little work. If someone more up-to-date on the situation has advice that would be awesome:)

I don't know NixOS, but this blog post and lecture might help you give emacs a fair trial:

http://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-... https://www.youtube.com/watch?v=JWD1Fpdd4Pc

One of my vim-using coworkers found it. He, along with another colleague, have since found emacs compelling enough to use as their main text editor.

Post reply on HN