Skip to content

Relax constraint on SqlExpr equality operators to just Equiv#146

Merged
oyvindberg merged 2 commits intotypr-dev:mainfrom
kolemannix:relax_eq_constraint
May 28, 2025
Merged

Relax constraint on SqlExpr equality operators to just Equiv#146
oyvindberg merged 2 commits intotypr-dev:mainfrom
kolemannix:relax_eq_constraint

Conversation

@kolemannix
Copy link
Contributor

@kolemannix kolemannix commented May 22, 2025

We don't need a full Ordering for === and !==

Many types have an Equiv instance but not an Ordering.

This can save user code from needing to create a bogus ordering.

We don't need an Ordering for `===`.

Many types have an Equiv instance but not an Ordering.
@kolemannix kolemannix marked this pull request as ready for review May 22, 2025 16:11
@oyvindberg
Copy link
Collaborator

has that always been there?! never seen it before!

but the change looks good. could you update the corresponding file for zio as well please?

@kolemannix kolemannix force-pushed the relax_eq_constraint branch from 57c670d to 00a464b Compare May 27, 2025 14:14
@oyvindberg oyvindberg merged commit 15e2a4b into typr-dev:main May 28, 2025
8 checks passed
@oyvindberg
Copy link
Collaborator

Nice, thanks! Ill get a release out in a few days. Ping me if i forget, these days are quite busy

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