[Haskell-beginners] HLint: use void instead of return()

harry voldermort at hotmail.com
Mon Apr 22 13:41:28 CEST 2013


I have some monadiccode of the form:
  foo >>= something >>= bar >> return ()

HLint is telling me to change this to:
  void (foo >>= something >>= bar)

Why is the second form considered better? I actually find the original to be
clearer.




More information about the Beginners mailing list