Indeed!  Even documented, this seems like way too many reduce/reduce conflicts---we should be able to refactor the grammar to avoid them.<br><br><div class="gmail_quote">On Wed Dec 03 2014 at 3:59:48 AM Simon Marlow <<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">reduce/reduce conflicts are bad, especially so since they're<br>
undocumented.  We don't know whether this introduced parser bugs or not.<br>
  Mike - could you look at this please?  It was your commit that<br>
introduced the new conflicts.<br>
<br>
Cheers,<br>
Simon<br>
<br>
On 02/12/2014 10:19, Dr. ERDI Gergo wrote:<br>
> On Mon, 1 Dec 2014, Richard Eisenberg wrote:<br>
><br>
>> In unrelated work, I saw this scroll across when happy'ing the parser:<br>
>><br>
>>> shift/reduce conflicts:  60<br>
>>> reduce/reduce conflicts: 16<br>
>><br>
>> These numbers seem quite a bit higher than what I last remember (which<br>
>> is something like 48 and 1, not 60 and 16). Does anyone know why?<br>
><br>
> The offending commit is bc2289e13d9586be087bd8136943dc<u></u>35a0130c88. I know<br>
> this because I was changing the parser for patsyn signatures, and so I<br>
> updated the numbers in Parser.y to make sure I'm not adding any new<br>
> conflicts:<br>
><br>
> 25 June 2014<br>
><br>
> Conflicts: 47 shift/reduce<br>
>             1 reduce/reduce<br>
><br>
><br>
> but then when time came to rebase my changes before pushing, I noticed<br>
> that it has gone up, and I had to update it yet again in Parser.y:<br>
><br>
> 20 Nov 2014<br>
><br>
> Conflicts: 60 shift/reduce<br>
>             12 reduce/reduce<br>
><br>
> So anyway, the point is, if you try bc2289e and bc2289e^ you can see<br>
> that that is the commit that introduced these new conflicts.<br>
> ______________________________<u></u>_________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</blockquote></div>