Skip to content

Commit

Permalink
make Eq builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Nov 14, 2024
1 parent 0080b11 commit a1a019b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Stdlib/Trait/Eq.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import Stdlib.Data.Bool.Base open;
import Stdlib.Data.Fixity open;

--- A trait defining equality
builtin eq
trait
type Eq A := mkEq@{eq : A -> A -> Bool};
type Eq A := mkEq@{builtin isEqual eq : A -> A -> Bool};

syntax operator == comparison;
syntax operator /= comparison;
Expand Down

0 comments on commit a1a019b

Please sign in to comment.