Closed int-index closed 4 years ago
https://gitlab.haskell.org/ghc/ghc/merge_requests/1867 is currently blocked on a release with this.
The AppVeyor CI failure is unrelated to the patch and is fixed in #154
This looks like it's a user-facing feature addition to happy
. Have you updated the manual?
I'd be happy to merge this, but can we have documentation and a test please?
I'd be happy to merge this, but can we have documentation and a test please?
I'm on it – setting up DocBook locally proved to be a bit of a challenge. Will push an update today.
There's a test case and a section in the manual now.
As someone who has taught happy
to undergraduates, I have an interest in a clear manual. And that interest is satisfied by this change -- thanks @int-index.
GHC Merge Request 1856 resolves shift/reduce conflicts in GHC by using the precedence machinery of
happy
, marking certain rules as%prec shift
.However, the downside of this approach is that it requires a listing of all lookahead tokens. With a dedicated pragma
%shift
, we can avoid this.