Skip to content

Accept CRLF line endings in .ormolu files#969

Merged
mrkkrp merged 1 commit intomasterfrom
accept-crlf-in-fixity-overrides
Jan 17, 2023
Merged

Accept CRLF line endings in .ormolu files#969
mrkkrp merged 1 commit intomasterfrom
accept-crlf-in-fixity-overrides

Conversation

@mrkkrp
Copy link
Copy Markdown
Member

@mrkkrp mrkkrp commented Jan 17, 2023

No description provided.

@mrkkrp mrkkrp requested a review from amesgen January 17, 2023 10:21
@mrkkrp mrkkrp force-pushed the accept-crlf-in-fixity-overrides branch from 629efaf to 0dc3ac2 Compare January 17, 2023 10:21
Copy link
Copy Markdown
Contributor

@amesgen amesgen left a comment

Choose a reason for hiding this comment

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

I think the reason why we are even seeing these CRLFs is due to us using the functions from Ormolu.Utils.IO which (transitively) uses withBinaryFile instead of withFile as Data.Text.IO.readFile does, but this indeed the right thing to do (see #760 or the Haddocks of Data.Text.IO.readFile).

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.

2 participants