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

Remove usage of QuasiQuotes #193

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Remove usage of QuasiQuotes #193

merged 1 commit into from
Oct 11, 2024

Conversation

wz1000
Copy link
Contributor

@wz1000 wz1000 commented Oct 3, 2024

Remove usage of QuasiQuotes

This is necessary to allow directory to be build with GHC

Fixes #192

This is necessary to allow directory to be build with GHC

Fixes #192
@mpickering
Copy link
Contributor

@hasufell, It's important to avoid using template haskell in boot packages as there are platforms which don't support using it. (See the same issue in haskell/os-string#21)

(mkUTF16le ErrorOnCodingFailure)
".copyFile.tmp"
of
Left err -> error ("withReplacementFile: invalid encoding: " ++ show err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error is a bit depressing, why don't we throw an IO error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not something that should really happen under any usage of the library, so I don't see the benefit of throwIO which makes it easier to catch.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, doesn't matter much sense it's a static string.

@wz1000
Copy link
Contributor Author

wz1000 commented Oct 9, 2024

@hasufell any updates here?

@hasufell
Copy link
Member

hasufell commented Oct 9, 2024

I'm not a maintainer, just commenting, because I was involved in the code.

@wz1000
Copy link
Contributor Author

wz1000 commented Oct 9, 2024

ping @Rufflewind

@Rufflewind Rufflewind merged commit 0a764c2 into master Oct 11, 2024
20 checks passed
@Rufflewind Rufflewind deleted the no-quasi branch October 11, 2024 10:25
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.

directory master uses quasiquotes
4 participants