Re: Confusing warnings from GHC HEAD

2010-09-04 Thread Ian Lynagh
On Tue, Aug 31, 2010 at 09:11:13PM -0700, Bryan O'Sullivan wrote: On Tue, Aug 31, 2010 at 2:06 AM, Simon Peyton-Jones simo...@microsoft.comwrote: I can’t reproduce this. With the enclosed module and HEAD, I get the warning; but when I add –fspec-constr-count=5, the warning goes away and

Re: Confusing warnings from GHC HEAD

2010-09-04 Thread Bryan O'Sullivan
On Tue, Aug 31, 2010 at 2:06 AM, Simon Peyton-Jones simo...@microsoft.comwrote: I can’t reproduce this. With the enclosed module and HEAD, I get the warning; but when I add –fspec-constr-count=5, the warning goes away and I get the specialised rules. The compiler behaves as expected on

RE: Confusing warnings from GHC HEAD

2010-09-01 Thread Simon Peyton-Jones
: Bryan O'Sullivan; glasgow-haskell-users@haskell.org Subject: Re: Confusing warnings from GHC HEAD On Tue, Aug 31, 2010 at 11:06 AM, Simon Peyton-Jones simo...@microsoft.commailto:simo...@microsoft.com wrote: I can't reproduce this. With the enclosed module and HEAD, I get the warning; but when I

RE: Confusing warnings from GHC HEAD

2010-08-31 Thread Simon Peyton-Jones
I can’t reproduce this. With the enclosed module and HEAD, I get the warning; but when I add –fspec-constr-count=5, the warning goes away and I get the specialised rules. Could Cabal not be passing on the flag or something? Simon module Foo where data T = A | B | C | D | E f :: T - [Bool]

Re: Confusing warnings from GHC HEAD

2010-08-31 Thread Johan Tibell
On Tue, Aug 31, 2010 at 11:06 AM, Simon Peyton-Jones simo...@microsoft.comwrote: I can’t reproduce this. With the enclosed module and HEAD, I get the warning; but when I add –fspec-constr-count=5, the warning goes away and I get the specialised rules. Is this the right fix in general? I

Re: Confusing warnings from GHC HEAD

2010-08-31 Thread Bryan O'Sullivan
On Tue, Aug 31, 2010 at 2:06 AM, Simon Peyton-Jones simo...@microsoft.comwrote: I can’t reproduce this. With the enclosed module and HEAD, I get the warning; but when I add –fspec-constr-count=5, the warning goes away and I get the specialised rules. Could Cabal not be passing on the