Skip to content

Fix constraints for shouldBeApproxPrec and add lifted approximate equality expectations - #5

Open
tobeannouncd wants to merge 6 commits into
codewars:masterfrom
tobeannouncd:approx-wrapper
Open

Fix constraints for shouldBeApproxPrec and add lifted approximate equality expectations#5
tobeannouncd wants to merge 6 commits into
codewars:masterfrom
tobeannouncd:approx-wrapper

Conversation

@tobeannouncd

Copy link
Copy Markdown

This branch adds functions that lift approximate equality to unary/binary type constructors that are instances of Eq1/Eq2, making it easier to assert approximate equality for higher order types like [Double] or (Float, Double).

Branch also updates the constraint for shouldBeApproxPrec to use Num instead of Fractional.

@tobeannouncd tobeannouncd changed the title Approx wrapper Fix constraints for shouldBeApproxPrec and add lifted approximate equality expectations Jun 23, 2026
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.

1 participant