[Haskell-cafe] [ANN] Working with HLint from Emacs

Gwern Branwen gwern0 at gmail.com
Wed Jan 28 10:35:06 EST 2009

On Wed, Jan 28, 2009 at 6:30 AM, Colin Paul Adams
<colin at colina.demon.co.uk> wrote:
>>>>>> "Alex" == Alex Ott <alexott at gmail.com> writes:
>    Alex> Hello For Emacs users it could be interesting - I wrote
>    Alex> small module for more comfortable work with HLint from
>    Alex> Emacs. It has same functionality as compilation-mode -
>    Alex> navigation between errors, etc.
>    Alex> To use it, just add following code to emacs init file:
>    Alex> (require 'hs-lint) (defun my-haskell-mode-hook ()
>    Alex> (local-set-key "\C-cl" 'hs-lint)) (add-hook
>    Alex> 'haskell-mode-hook 'my-haskell-mode-hook)
> I've done that.
> Now how do you get it to do anything?
> --
> Colin Adams

Presumably now every time you use C-c l to load the current buffer
into GHCi, it'll show hlint warnings about that file (in addition to
whatever -Wall warnings you've enabled). It's a straightforward use of
Emacs hooks.


More information about the Haskell-Cafe mailing list