Skip to content

Instantly share code, notes, and snippets.

@Peaker
Forked from anonymous/gist:260580
Created December 20, 2009 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peaker/260587 to your computer and use it in GitHub Desktop.
Save Peaker/260587 to your computer and use it in GitHub Desktop.
:leyal@leyal-desktop:~/personal/devel/haskell/irc$ hlint rovar.hs
rovar.hs:15:1: Error: Redundant do
Found:
do loadDir "basic_types" >> loadDir "complex" >>
loadDir "single_types"
Why not:
loadDir "basic_types" >> loadDir "complex" >>
loadDir "single_types"
rovar.hs:18:20: Warning: Redundant brackets
Found:
(isSuffixOf (C8.pack "bson")) . C8.pack
Why not:
isSuffixOf (C8.pack "bson") . C8.pack
rovar.hs:23:1: Warning: Eta reduce
Found:
runObjects b = (runGet getBSONObject) b
Why not:
runObjects = (runGet getBSONObject)
rovar.hs:23:1: Warning: Redundant brackets
Found:
(runGet getBSONObject) b
Why not:
runGet getBSONObject b
rovar.hs:25:1: Warning: Eta reduce
Found:
getFile f = L.readFile f
Why not:
getFile = L.readFile
rovar.hs:30:1: Error: Redundant do
Found:
do let str = runPut $ putBSONValue o in L.writeFile (f ++ "2") str
Why not:
let str = runPut $ putBSONValue o in L.writeFile (f ++ "2") str
rovar.hs:34:1: Warning: Redundant brackets
Found:
if (str == b) then putStrLn $ f ++ ":: SUCCEEDED" else
putStrLn $ f ++ ":: FAILED"
Why not:
if str == b then putStrLn $ f ++ ":: SUCCEEDED" else
putStrLn $ f ++ ":: FAILED"
Found 7 suggestions (2 errors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment