Hi Gwern, Both these bugs have already been fixed for a few minor versions of HLint. Which version are you using? I think I added support for these things in 1.6.3 or 1.6.4
Thanks Neil On Thu, Aug 6, 2009 at 9:00 AM, Neil Mitchell<[email protected]> wrote: > Hi > >> [03:35 AM] 0Mb$ nano foo && cat foo foo.hs && echo >> ignore "Eta reduce" = "" >> error = Prelude.readFile ==> Data.ByteString.readFile >> main = Prelude.readFile "foo" >> return () >> [03:36 AM] 0Mb$ hlint --hint=foo foo.hs hlint: Prelude.head: empty list >> >> If I specify >> error = Prelude.readFile ==> Data.ByteString.readFile >> >> I crash darcs hlint with head. If the periods are replaced with, say, >> underscores, I get the correct suggestion. > > I'll fix these bugs and release a new version. Sorry for the bugs! > >> Finally, there's no way apparently to warn about whitespace, which is the >> third and last thing haskell_policy does (it warns about readFile, >> hGetContents, and tabs). This we may simply have to forget about. > > Why not -fwarn-tabs ? It's in GHC already. Although I'm not totally > opposed to adding checks for things like trailing white space, use of > tabs etc. > > Thanks > > Neil > _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
