forked from NixOS/nixfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It now also takes into account whether post fits onto a single line or not. Previously this did not matter, as all instances only had whitespace in there, so force-unexpanding worked as a hack. But now it is time to fully implement the feature. No big changes to the layouting algorithm itself were made, however it needed to be refactored such that the interface it provides only processes one item at a time. (The algorithm already did that, it's just that the function always also processed the rest.) This has been done by making use of the State monad. This should cause no changes to the output format.
- Loading branch information
1 parent
ef310bb
commit a54a01a
Showing
4 changed files
with
127 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters