haskellstatic-analysishlint

Haskell `hlint`, how can I add hint for wrong indentation, trailing spaces and etc?


I tried to use hlint package, but it gives no warnings or configuration for:

and other lint option stuff that relates to spaces/tabs and empty lines

I don't see how "Add new hint" can help me with this


Solution

  • From https://github.com/ndmitchell/hlint/issues/522:

    There is currently no support in HLint for issues which are about spacing or indentation. There are a few tools that deal with such concerns, search Haskell style checker for a few. I think HLint is probably better remaining free from whitespace concerns and letting other tools deal with them - I should probably link in the README to whatever the consensus is (I'm not sure)