Skip to content

Conversation

piegamesde
Copy link
Member

@piegamesde piegamesde commented May 17, 2025

Quick experiment for #228 #284. Honestly I'm more "vibe coding" than anything else here, this issue is stretching our engine past its limits, and properly reasoning about what which knobs to turn is really expensive on brainpower

Closes #228, Closes #309

Copy link

github-actions bot commented May 17, 2025

Nixpkgs diff

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2025-05-27/64870/1

@piegamesde piegamesde force-pushed the unindent-concatenation branch 2 times, most recently from ab7d1f8 to 2022fef Compare June 10, 2025 14:16
Copy link
Collaborator

@jfly jfly left a comment

Choose a reason for hiding this comment

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

I skimmed the code, but between limited Haskell experience and limited time, I wasn't able to give any useful feedback on the code.

Left some thoughts/nits on the tests. I also skimmed the nixpkgs diff.

I'm surprised that this commit had no effect on nixpkgs: infinixbot/nixpkgs@6e9d96e. Does the change actually do anything?

I'm giving you a shipit, but am also asking/trusting you to seek feedback from more tenured members of the team if you feel it's needed here!

@piegamesde piegamesde force-pushed the unindent-concatenation branch from 2022fef to e9770be Compare June 11, 2025 08:29
@piegamesde
Copy link
Member Author

@jfly I've now rewritten the changes to better highlight what each bit of the code is doing, that should hopefully clear things up. With the new diff, we should be able to answer the question whether or not we still want to keep the old special case

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2025-06-24/66031/1

@piegamesde piegamesde force-pushed the unindent-concatenation branch 4 times, most recently from a9d77e6 to bb9a9df Compare June 25, 2025 10:40
@piegamesde piegamesde force-pushed the unindent-concatenation branch from bb9a9df to 3a3e0d3 Compare June 25, 2025 12:31
@piegamesde piegamesde force-pushed the unindent-concatenation branch from 3a3e0d3 to 7e22758 Compare June 25, 2025 12:46
@piegamesde piegamesde changed the title Unindent concatenation Tweak operation absorbtion (ex. Unindent Concatenation) Jun 25, 2025
We don't need it anymore, case 1 covers every good aspect of it but in
better
@piegamesde piegamesde force-pushed the unindent-concatenation branch from 58dd0c9 to aed61db Compare June 25, 2025 13:16
@piegamesde piegamesde merged commit bd28847 into NixOS:master Jul 6, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Nix formatting Jul 6, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2025-07-08/66454/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update standard.md to allow for unindented concatenation Appending an optional string / array causes the entire expression to be reformatted
4 participants