<div dir="ltr">It&#39;s hlint: <a href="http://community.haskell.org/~ndm/hlint/">http://community.haskell.org/~ndm/hlint/</a><div><br></div><div style>e.g.:</div><div style><br></div><div style># sudo apt-get install hlint</div>
<div style># hlint src</div><div style><br></div><div style>(where src is the folder containing Haskell files)</div><div style><br></div><div style>or</div><div style><br></div><div style># hlint src --report</div><div style>
<br></div><div style>to generate an HTML report.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 10:25 PM, Emanuel Koczwara <span dir="ltr">&lt;<a href="mailto:poczta@emanuelkoczwara.pl" target="_blank">poczta@emanuelkoczwara.pl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
  Why GHC doesn&#39;t tell me such things like hpaste? (example here:<br>
<a href="http://hpaste.org/82917" target="_blank">http://hpaste.org/82917</a>)<br>
<br>
27:12: Error: Use replicateM<br>
Found:<br>
  sequence $ replicate gridSize getLine<br>
Why not:<br>
  Control.Monad.replicateM gridSize getLine<br>
<br>
<br>
50:14: Warning: Use list comprehension<br>
Found:<br>
  if y &gt; 0 then [(UP, (x, y - 1))] else []<br>
Why not:<br>
  [(UP, (x, y - 1)) | y &gt; 0]<br>
<br>
<br>
81:1: Error: Eta reduce<br>
Found:<br>
  sortByPathCost p ps = sortBy compareHeuristic ps<br>
Why not:<br>
  sortByPathCost p = sortBy compareHeuristic<br>
<br>
<br>
  Can I enable this kind of verbosity in GHC somehow?<br>
<br>
Emanuel<br>
<br>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>