Skip to content

Add Hunk invariant static checks#35

Draft
ninioArtillero wants to merge 2 commits into
seereason:masterfrom
tweag:xg/context-checks
Draft

Add Hunk invariant static checks#35
ninioArtillero wants to merge 2 commits into
seereason:masterfrom
tweag:xg/context-checks

Conversation

@ninioArtillero

Copy link
Copy Markdown
Collaborator

No description provided.

-> {vs : [GroupedDiff a b] | noStuttering vs} @-}
getGroupedDiffBy :: (a -> b -> Bool) -> [a] -> [b] -> [PolyDiff [a] [b]]
getGroupedDiffBy eq a b = go $ getDiffBy eq a b
where go (First x : xs) = let (fs, rest) = goFirsts xs in First (x:fs) : go rest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe these local definitions can be kept here instead of moving them to the top level.

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