I wanted to get started with Dante: Emacs mode for Interactive Haskell but found it difficult for various reasons. Here’s how I managed it.
I just downloaded
dante.el so I can run it with
Use Emacs 25
It doesn’t seem to work with Emacs 24
Get dependent packages
lcr. It also requires
attrap if you want autofix.
I don’t know how to use Emacs properly so I just went to MELPA and downloaded the files. You can load them with
It also required some other stuff like
dash which I managed to install with
I don’t want to use MELPA if I don’t have to.
Turn on Dante and flycheck minor modes
You should probably use mode hooks to turn these on but I just used
If it complains about missing
Dante tries to work out what sort of project you are working in so it know how to launch GHCi. The way it works this out is through
dante-repl-command-line-methods-alist. It checks for
.cabal. I have both but I want to use cabal so I had to delete the stack entry. I used
M-x customize-group to do this, in the “Dante Repl Command Line Methods Alist” setting.
Then it seems that Dante just works.