[Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Ivan Lazar Miljenovic
As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil Mitchell: http://hackage.haskell.org/trac/ghc/ticket/3263 . However, does it make sense for this to be turned on with -Wall? For starters, why should this warning apply only to do

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Neil Brown
Ivan Lazar Miljenovic wrote: As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil Mitchell: http://hackage.haskell.org/trac/ghc/ticket/3263 . However, does it make sense for this to be turned on with -Wall? For starters, why should

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Malcolm Wallace
(before anyone tells me I should be using an Applicative style instead, polyparse doesn't support Applicative, so I can't) Well, polyparse may not support the Applicative class defined in Control.Applicative, but it _does_ have an applicative interface using other names for the same operator

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Gwern Branwen
On Fri, Apr 9, 2010 at 10:20 AM, Neil Brown wrote: > Ivan Lazar Miljenovic wrote: >> >> As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with >> -Wall.  This is based off a bug report by Neil Mitchell: >> http://hackage.haskell.org/trac/ghc/ticket/3263 . >> >> However, does it make

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Bryan O'Sullivan
On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > > As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with > -Wall. This is based off a bug report by Neil Mitchell: > http://hackage.haskell.org/trac/ghc/ticket/3263 . > > However, does it ma

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Iustin Pop
On Fri, Apr 09, 2010 at 09:07:29AM -0700, Bryan O'Sullivan wrote: > On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic < > ivan.miljeno...@gmail.com> wrote: > > > > > As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with > > -Wall. This is based off a bug report by Neil Mitchel

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-10 Thread Ivan Miljenovic
On 10 April 2010 00:20, Neil Brown wrote: > The comments in that bug report actually mention "My patch does not warn on > uses of >>, only in do-notation, where the situation is more clear cut".  I > take >> to be an explicit sign that the user wants to ignore the result of > the first action, whe

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-10 Thread Ivan Miljenovic
On 10 April 2010 02:07, Bryan O'Sullivan wrote: > Personally, I find it to be tremendously noisy and unhelpful, and I always > edit my .cabal files to turn it off. I think of it as a usability > regression. Yeah, I'm very tempted to do this as well. This warning might make sense for IO, but I th

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-13 Thread Max Cantor
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 On Apr 10, 2010, at 3:08 PM, Ivan Miljenovic wrote: > On 10 April 2010 02:07, Bryan O'Sullivan wrote: >

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Roel van Dijk
Can anyone provide an example of an error that is prevented by this warning? When exactly is it dangerous to ignore a monadic function's return value? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-c

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Ivan Lazar Miljenovic
Roel van Dijk writes: > Can anyone provide an example of an error that is prevented by this > warning? When exactly is it dangerous to ignore a monadic function's > return value? See Neil's original rationale in the bug report: http://hackage.haskell.org/trac/ghc/ticket/3263 Short version: usin

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Antoine Latter
On Tue, Apr 13, 2010 at 9:59 PM, Max Cantor 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

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Nicolas Pouillard
On Wed, 14 Apr 2010 09:15:04 -0500, Antoine Latter wrote: > On Tue, Apr 13, 2010 at 9:59 PM, Max Cantor 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

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread John Meacham
On Fri, Apr 09, 2010 at 09:07:29AM -0700, Bryan O'Sullivan wrote: > On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic < > ivan.miljeno...@gmail.com> wrote: > > As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with > > -Wall. This is based off a bug report by Neil Mitchell: > >

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-15 Thread Henning Thielemann
John Meacham schrieb: > On Fri, Apr 09, 2010 at 09:07:29AM -0700, Bryan O'Sullivan wrote: >> On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic < >> ivan.miljeno...@gmail.com> wrote: >>> As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with >>> -Wall. This is based off a bug rep