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

DumpInstr: Avoid -Wx-partial warning #55

Merged
merged 3 commits into from
Jan 17, 2024
Merged

DumpInstr: Avoid -Wx-partial warning #55

merged 3 commits into from
Jan 17, 2024

Conversation

RyanGlScott
Copy link
Contributor

The use of the head function triggers a -Wx-partial warning on GHC 9.8. We can avoid this by avoiding the use of readHex, which is awkward to extract the parsed hexadecimal result out of. Instead, we parse inputs using a custom Read instance in combination with readMaybe.

The use of the `head` function triggers a `-Wx-partial` warning on GHC 9.8. We
can avoid this by avoiding the use of `readHex`, which is awkward to extract
the parsed hexadecimal result out of. Instead, we parse inputs using a custom
`Read` instance in combination with `readMaybe`.
@RyanGlScott RyanGlScott merged commit c008d7c into main Jan 17, 2024
3 checks passed
@RyanGlScott RyanGlScott deleted the ghc-9.8 branch January 17, 2024 22:20
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.

2 participants