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

David McBride toad3k at gmail.com
Mon Apr 22 15:54:23 CEST 2013


If you think it looks prettier, then use it.  But it is just (\x -> x >>
return ()) under the hood so it makes no difference.


On Mon, Apr 22, 2013 at 9:29 AM, harry <voldermort at hotmail.com> wrote:

> So when is void better?
>
> Kim-Ee Yeoh <ky3 <at> atamo.com> writes:
>
> > In corner cases like this, it really looks like six of one, half dozen of
> the other.
> > In other words, feel free to ignore hlint when you need to. The
> heuristics
> aren't tuned to be 100% perfect.
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130422/f6e3da26/attachment.htm>


More information about the Beginners mailing list