Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

STYLE: information on using hlint

  • Loading branch information...
commit 6e2a42ae967bbd71b818b6111f3867d4b66744ca 1 parent 8568f57 authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 STYLE
@@ -92,4 +92,11 @@ STYLE GUIDELINES
equivalent `const (const . foo)`. No excuses for obvious things, like not
replacing `foo a b = a` with `foo a _ = a`, though. (Or even better `foo a
_interestingName = a`, if you feel the meaning of the ignored argument should be
- reminded)
+ reminded)
+* A useful tool for checking style is the 'hlint' tool on Hackage. However, not all
+ of its suggestions should be followed (and one should check that a suggestion results
+ in clearer/better code, and compilable code, for that matter). To filter out entire categories
+ of suggestions we find objectionable, use an invocation of hlint that looks like this:
+ $ hlint --ignore='Eta reduce' --ignore="Lambda shift" --ignore="Use liftM" --ignore="Use const"
+ --ignore="Use a string literal" Yi/
Please sign in to comment.
Something went wrong with that request. Please try again.