You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
off =PLUS(happyIndexOffAddr happyActOffsets st, i)
So it is not the user's responsibility to declare LANGUAGE PatternGuards, but the one of the template.
Note that haskell-src is written in the Haskell98 language.
It could be that the happy testsuite lacks explicit Haskell98 entries, so this problem stayed under the radar.
The text was updated successfully, but these errors were encountered:
Thanks. Indeed I could reproduce in #309 after adding -XHaskell98 to the testsuite (seems like the better default compared to implicit -XGHC20xx) and easily fixed as well. I'm preparing a release at branch release-2.0 and unless you have something to object, I will merge #309 this evening and prepare publish the new release afterwards.
With
happy-2.0.1
, I am getting this warning when buildinghaskell-src
:The generated code is:
It seems to stem from the template at:
happy/lib/data/HappyTemplate.hs
Lines 90 to 97 in 17d3c93
So it is not the user's responsibility to declare
LANGUAGE PatternGuards
, but the one of the template.Note that
haskell-src
is written in theHaskell98
language.It could be that the
happy
testsuite lacks explicitHaskell98
entries, so this problem stayed under the radar.The text was updated successfully, but these errors were encountered: