Using Hlint with intero on emacs

I cannot get hlint suggestions that will appear in emacs using intero.

  • I have a new installation of emacs 24.5
  • I have added intero stuff in here to a new ~/.emacs file
  • I did nothing for emacs.

I read that solution:

 (flycheck-add-next-checker 'intero '(warning . haskell-hlint)) 

But I do not know what I should do with this. If I add it to my ~/.emacs file then emacs will fail.

(The rest seems OK - intero starts when I open the Haskell file - errors are immediately flagged when I print.)

How do I get Hlint offers?

+7
emacs haskell hlint intero
source share
1 answer

Well, it turned out that I missed two more magic lines:

 (require 'intero) (require 'flycheck) (flycheck-add-next-checker 'intero '(warning . haskell-hlint)) 

[It is very annoying that I need to learn Lisp to install Haskell ide - Atom just works!]

-4
source share

All Articles