Skip to content

Conversation

soulomoon
Copy link
Collaborator

Fix #4709

…omicFileWriteStringUTF8 for safer file operations
@soulomoon soulomoon requested a review from fendor as a code owner August 26, 2025 21:08
@soulomoon soulomoon linked an issue Aug 26, 2025 that may be closed by this pull request
@soulomoon soulomoon changed the title Replace writeFile with atomicFileWrite Replace writeFile with atomicFileWrite in ghcide-tests Aug 26, 2025
Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

Great find!

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

LGTM, perhaps we want an HLint rule to forbid writeFile variations, or export writeFile = atomicWriteFile from Test.Hls?

@fendor fendor merged commit 5550ca5 into master Aug 27, 2025
47 of 50 checks passed
@soulomoon
Copy link
Collaborator Author

Yes, perhaps we can enforce it in a follow up MR.

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.

Flasky test: addDependentFile
2 participants