Skip to content

Remove usage of QuasiQuotes#193

Merged
Rufflewind merged 1 commit intomasterfrom
no-quasi
Oct 11, 2024
Merged

Remove usage of QuasiQuotes#193
Rufflewind merged 1 commit intomasterfrom
no-quasi

Conversation

@wz1000
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

wz1000 commented Oct 9, 2024

@hasufell any updates here?

@hasufell
Copy link
Copy Markdown
Member

hasufell commented Oct 9, 2024

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

@wz1000
Copy link
Copy Markdown
Contributor Author

wz1000 commented Oct 9, 2024

ping @Rufflewind

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