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
I got the following error while trying to build the language-python package:
dist/build/Language/Python/Version3/Parser/Parser.hs:7562:4: error: [GHC-83865]
• Couldn't match type ‘Happy_GHC_Exts.Int32#’
with ‘Happy_GHC_Exts.Int#’
Expected: Happy_Int
Actual: Happy_GHC_Exts.Int32#
• In the expression: Happy_GHC_Exts.indexInt32OffAddr# arr off
In an equation for ‘happyIndexOffAddr’:
happyIndexOffAddr (HappyA# arr) off
= (Happy_GHC_Exts.indexInt32OffAddr# arr off)
|
7562 | (Happy_GHC_Exts.indexInt32OffAddr# arr off)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build language-python-0.5.8 (which is required by
test-project-0.0.0). See the build log above for details.
which has started to happen as of today right after the release of a new version of the happy parser generator. I am not sure if this is an intented breaking change from the developers of happy or that this is a bug. Nonetheless, I suggest to limit the version of happy <2 so that the new version is not used when building language-python.
For an unclear reason the reported Haskell version in the __GLASGOW_HASKELL__ macro is redefined as GHC version 7.9 in Parser.y for both parsers. This causes a missing type conversion from a Int32# to an Int#.
Activity
bramvdbogaerde commentedon Sep 25, 2024
For an unclear reason the reported Haskell version in the
__GLASGOW_HASKELL__macro is redefined as GHC version 7.9 inParser.yfor both parsers. This causes a missing type conversion from a Int32# to an Int#.Fix cabal index due to language-python/happy bug
disable language-python due to happy (bjpop/language-python#77)
ocramz commentedon Feb 4, 2025
Just ran into this as well.
bramvdbogaerde commentedon Feb 20, 2025
Any news on this @bjpop? PR #79 also resolves this issue.
bjpop commentedon Jun 6, 2025
I've merged PR #79 into Main now.
Sorry for the delay.
Please test if you have a chance.
bramvdbogaerde commentedon Jun 7, 2025
Thanks! Seems to work.
juhp commentedon Jul 16, 2025
Any plan for a release? (not a user, but just asking for Stackage)
bramvdbogaerde commentedon Jul 16, 2025
The dependencies probably still need to be updated before release (cf. #82) so that it is not in conflict with other package in Stackage.