Is there a team to apply hlint clauses in emacs?

I use flycheck and haskell-hlint in emacs when I write Haskell codes and I think it would be great if I can apply these hlint sentences by calling some emacs procedures instead of manually changing the code.

If there is no one available, and in case I have to write this procedure myself:

Is it guaranteed that hlint output always looks like this:

Found: {Text1} Why not: {Text2} 

where {Text?} can always be parsed as an abstract Haskell syntax tree?

+6
source share
1 answer

HLint comes with an Emacs script hs-lint.el that replaces you after the details are in README . The script is not officially supported by the HLint developer, but some people have been successful.

Separately, it is planned to provide an appropriate replacement function in HLint, which, if provided, will easily integrate with Emacs. Despite the fact that he was always in the background, now there are people who work with the necessary replacement libraries for the replacement spaces that HLint requires.

+6
source

Source: https://habr.com/ru/post/976149/


All Articles