Closed andreasabel closed 2 months ago
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: https://github.com/haskell/happy/blob/17d3c937e9d469a5bb3b0e90b77c394eb8a4ba3b/lib/data/HappyTemplate.hs#L90-L97 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 thehappy
testsuite lacks explicitHaskell98
entries, so this problem stayed under the radar.