Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt FastShift instances for Word32 to ghc-9.4.x. #21

Closed
wants to merge 1 commit into from

Conversation

peti
Copy link

@peti peti commented Feb 1, 2023

ghc-9.4.x changed the type of Word32. This trivial patch fixes the build with the latest version.

@joeyh
Copy link
Collaborator

joeyh commented Aug 4, 2023

I think that #20 fixes this in a better way. That approach will work with older versions of ghc as well.

FastShift was originally added to work around a ghc performance problem of a shift involving a test and branch. It used uncheckedShiftL# to avoid that overhead. Then unsafeShiftL was added to ghc, which does exactly the same thing for Word32.

@joeyh
Copy link
Collaborator

joeyh commented Aug 4, 2023

Closing this since it was fixed in the other way in 2.0.1.1

@joeyh joeyh closed this Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants