1

Is it possible to use HLint.hs file to customize HLint messages in EclipseFP?

I tried adding a HLint.hs file in the project root containing:

import "hint" HLint.HLint

ignore "Use camelCase"

but it has no effect:

Update:

For HLint to pick up the changes in the HLint.hs file it is required to run Cabal install dependencies by right clicking on the project:

Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169

1 Answers1

2

EclipseFP runs HLint passing the project folder as the working directory, so a HLint.hs file there will be taken into account. HLint only runs when needed, so after putting the HLint.hs file or modifying it you need to touch your source files so they get rebuilt again and HLint runs on them again.

JP Moresmau
  • 7,388
  • 17
  • 31
  • I did made sure to change the files after placing the `HLint.hs` file in root but it is still not working. Could you please have a look at what I tried, maybe you can spot the problem: https://github.com/razvan-panda/EclipseFP-HTF-test-example The camel-case warnings should be ignored from the `LibTest.hs`. Thank you – Răzvan Flavius Panda Dec 31 '14 at 01:51