On Wed, 14 Apr 2010 09:15:04 -0500, Antoine Latter <aslat...@gmail.com> wrote:
> On Tue, Apr 13, 2010 at 9:59 PM, Max Cantor <mxcan...@gmail.com> wrote:
> > I'm in the camp of adding -fno-warn-unused-do-bind to my cabal files.  I 
> > hate sacrificing the purity of -Wall but I have so many forkIOs in my code 
> > that I think it was the best option.
> >
> > Max
> >
> 
> I think a nice compromise position would be the ability to annotate a
> function as "never trigger the unused do bind warning for me". That
> way I could catch these errors when I care, but also continue to
> ignore the return value of forkIO. I guess this doesn't help the
> space-leak argument for the warning, however.

What about defining forkIO_ as forkIO >> return (), this way there is no
ugly _ <- ... nor forgotten results?

-- 
Nicolas Pouillard
http://nicolaspouillard.fr
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to