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

Use writeFileEnsureLn in place of writeFile #2604

Merged
merged 4 commits into from
Jan 31, 2024
Merged

Conversation

janmasrovira
Copy link
Collaborator

Now we guarantee that whenever we write a file there is a newline character at the end, which is a Unix convention.

The juvix prelude now exports writeFileEnsureLn and it no longer exports writeFile. If at some point we need the behaviour of writeFile I'd suggest that we export it renamed as writeFileVerbatim or something similar.

@janmasrovira janmasrovira self-assigned this Jan 27, 2024
@janmasrovira janmasrovira marked this pull request as draft January 29, 2024 09:02
@janmasrovira janmasrovira force-pushed the refactor-writeFile branch 3 times, most recently from dfd5a18 to 4688cb5 Compare January 30, 2024 11:07
@janmasrovira janmasrovira marked this pull request as ready for review January 30, 2024 15:01
@janmasrovira janmasrovira merged commit 84b0e56 into main Jan 31, 2024
4 checks passed
@janmasrovira janmasrovira deleted the refactor-writeFile branch January 31, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants