[darcs-users] haskell_policy and hlint

Neil Mitchell ndmitchell at gmail.com
Sat Jun 20 13:42:32 UTC 2009


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


More information about the darcs-users mailing list