s/Eq/Bool

This commit is contained in:
Ayaz Hafiz 2022-10-10 16:57:25 -05:00
parent 6149c289fc
commit c5a025f853
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ interface Bool
Eq has Eq has
## Returns `Bool.true` if the two values are equal, and `Bool.false` otherwise. ## Returns `Bool.true` if the two values are equal, and `Bool.false` otherwise.
## ##
## `a == b` is shorthand for `Eq.isEq a b`. ## `a == b` is shorthand for `Bool.isEq a b`.
## ##
## When `isEq` is derived by the Roc compiler, values are compared via ## When `isEq` is derived by the Roc compiler, values are compared via
## structural equality. Structural equality works as follows: ## structural equality. Structural equality works as follows:

View file

@ -1291,7 +1291,7 @@ toF64Checked : Num * -> Result F64 [OutOfBounds]*
## >>> Num.isNaN (Num.pow -1 0.5) ## >>> Num.isNaN (Num.pow -1 0.5)
## ##
## *NaN* is unusual from other numberic values in that: ## *NaN* is unusual from other numberic values in that:
## * *NaN* is not equal to any other number, even itself. [Eq.isEq] always returns `Bool.false` if either argument is *NaN*. ## * *NaN* is not equal to any other number, even itself. [Bool.isEq] always returns `Bool.false` if either argument is *NaN*.
## * *NaN* has no ordering, so [isLt], [isLte], [isGt], and [isGte] always return `Bool.false` if either argument is *NaN*. ## * *NaN* has no ordering, so [isLt], [isLte], [isGt], and [isGte] always return `Bool.false` if either argument is *NaN*.
## ##
## These rules come from the [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754) ## These rules come from the [IEEE-754](https://en.wikipedia.org/wiki/IEEE_754)

View file

@ -58,7 +58,7 @@ fn module_source_and_path(builtin: DeriveBuiltin) -> (ModuleId, &'static str, Pa
DeriveBuiltin::IsEq => ( DeriveBuiltin::IsEq => (
ModuleId::BOOL, ModuleId::BOOL,
module_source(ModuleId::BOOL), module_source(ModuleId::BOOL),
builtins_path.join("Eq.roc"), builtins_path.join("Bool.roc"),
), ),
} }
} }