-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
This is necessary to allow directory to be build with GHC Fixes #192
@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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@hasufell any updates here? |
I'm not a maintainer, just commenting, because I was involved in the code. |
ping @Rufflewind |
Remove usage of QuasiQuotes
This is necessary to allow directory to be build with GHC
Fixes #192