Skip to content

Document implementation of Myers algorithm#21

Merged
ddssff merged 5 commits intoseereason:masterfrom
tweag:ninioArtillero/docs
Apr 22, 2026
Merged

Document implementation of Myers algorithm#21
ddssff merged 5 commits intoseereason:masterfrom
tweag:ninioArtillero/docs

Conversation

@ninioArtillero
Copy link
Copy Markdown
Contributor

This PR adds documentation haddocks to the Diff module internal functions with the goal of making the implementation transparent. For this, its connection to the original Myers paper formulation and concepts are stablished.

Copy link
Copy Markdown
Collaborator

@Bodigrim Bodigrim left a comment

Choose a reason for hiding this comment

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

Thanks, I gave it a quick proof read.

Comment thread src/Data/Algorithm/Diff.hs Outdated
Comment thread src/Data/Algorithm/Diff.hs Outdated
Comment thread src/Data/Algorithm/Diff.hs Outdated
Comment thread src/Data/Algorithm/Diff.hs
Comment thread src/Data/Algorithm/Diff.hs Outdated
@ninioArtillero ninioArtillero marked this pull request as ready for review April 17, 2026 00:17
@ninioArtillero ninioArtillero requested a review from Bodigrim April 17, 2026 00:18
Comment thread src/Data/Algorithm/Diff.hs Outdated
Comment thread test/Test.hs
-- diff. Note that there is an @lcs@ function in the
-- 'Data.Algorithm.Diff' module, but it's not exported. It's trivial
-- to reconstruct the LCS though, just by taking the 'B' elements.
-- | Obtains a longest common subsequence of two lists using their diff.
Copy link
Copy Markdown
Contributor Author

@ninioArtillero ninioArtillero Apr 17, 2026

Choose a reason for hiding this comment

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

Removed because the LCS is actually being materialized here.

@ddssff
Copy link
Copy Markdown
Member

ddssff commented Apr 18, 2026

Which is the best merge option, merge, rebase, or squash?

@Bodigrim
Copy link
Copy Markdown
Collaborator

I'd squash perhaps.

@ddssff ddssff merged commit b843602 into seereason:master Apr 22, 2026
12 checks passed
@ddssff
Copy link
Copy Markdown
Member

ddssff commented Apr 22, 2026

It didn't ask me this time.

@ninioArtillero
Copy link
Copy Markdown
Contributor Author

Thanks for the prompt review and merge! 🙂

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.

3 participants