feat(Haskell): More commutative parents and signatures #488
No reviewers
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "maralorn/mergiraf:feat-haskell-more-commutative-parents-and-signatures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was glad to see more Haskell support in 0.12. That motivated me to think about more commutative parents and I found quite a lot.
I am wondering a bit about comments. Operationally they do of course commute, should I generally add them to restricted_to_groups? I guess generally programmers would be very against permuting comment lines but I assume mergiraf will only do that for new lines anyway, won’t it?
Thanks a lot! That's an impressive list!
I recommend against including comments. In fact, I often specify
.restricted_to_groups()
for the sole purpose of excluding comments.The correct placement of comments is generally necessary for them to be understood correctly, and because the grammar allows them to appear anywhere, mergiraf isn't very good at putting them in sensible places when doing a commutative merging. I even opened #467 to exclude comments from commutative merging by default, even without restring to a specific group.
Did you consider adding a few tests to demonstrate the commutative merging? I trust you it works, but adding the tests would make sure the functionality stays there in the future (for instance if the grammar changes).
I'm thinking about merging this without tests by default. #489 would likely help to improve the default coverage of such changes.
Ah, sorry. I was still planning to write the tests, but I didn’t find the time. You can ofc. merge without them. I don’t think I would write a test which would find invalid merges introduced by this. They would only serve to make sure I actually implemented the right thing.
That's totally fine! If you ever want to add some, you're of course welcome to make another PR for it.