Hi Petr, > -- this should give a warning: ---- > main = readFile "foo" >>= putStr > ----------------------------------- > > -- this should NOT give a warning: ------- > import Prelude hiding( readFile ) > import Data.ByteString.Char8( readFile ) > > main = readFile "foo" >>= putStr
That seems fairly easy to solve - I've raised a bug: http://code.google.com/p/ndmitchell/issues/detail?id=193 > The other thing is that we'd probably like hlint to return a failure code when > it detects errors. Probably a "when (err > 0) $ exitWith (ExitFailure 1)" near > the end of main would do the trick. Yes, certainly a good idea - bug raised: http://code.google.com/p/ndmitchell/issues/detail?id=194 Both those things seem easy enough to do, so hopefully I'll have them done within a week or so. Thanks Neil _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
