Hacker News new | past | comments | ask | show | jobs | submit login

I am a vim-er and I decided that I will stick to one editor and that will be vim. I don't want to spent more time on learning one more editor. Emacs may be great but I made my choice and I want to stick to it.

For some time I wanted dive into haskell, and could not afford time, but recently I am getting some time freed up.

Can you suggest, how to set up vim for haskell like any plugins or scripts for better development experience.

As a side not this video(https://www.youtube.com/watch?v=ScS8Q32lMxA) of live haskell coding in vim looks interesting.

I highly recommend haskell-vim-now [1]. The author has a nice demo showcasing this setup, along with his virtual pair-coding environment [2].

With one install command, you get a polished Vim/Haskell setup with tab completion, type inspection, Hoogle, hinting, unicode symbols, etc.

Also has a nice dark theme. In fact, I use it as my go-to Vim configuration on new systems, even outside of Haskell.

It also lets you pipe code to the Haskell REPL for live evaluation (via tmux).

[1] https://github.com/begriffs/haskell-vim-now [2] https://www.youtube.com/watch?v=7sr8cAIwdBs

EDIT: Add video

That installation script is horrifying! I'm sure it has saved some people a lot of time, but it's a terrible idea to point anyone to it who already has an existing vim config.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact