mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-19 04:25:03 +00:00
Add Eq
to the standard library
This commit is contained in:
parent
b2e7fd91ab
commit
16d12a51c2
7 changed files with 73 additions and 3 deletions
|
@ -86,6 +86,7 @@ impl ModuleName {
|
|||
pub const ENCODE: &'static str = "Encode";
|
||||
pub const DECODE: &'static str = "Decode";
|
||||
pub const HASH: &'static str = "Hash";
|
||||
pub const EQ: &'static str = "Eq";
|
||||
pub const JSON: &'static str = "Json";
|
||||
|
||||
pub fn as_str(&self) -> &str {
|
||||
|
|
|
@ -1513,9 +1513,15 @@ define_builtins! {
|
|||
15 HASH_HASH_STR_BYTES: "hashStrBytes"
|
||||
16 HASH_HASH_LIST: "hashList"
|
||||
}
|
||||
14 JSON: "Json" => {
|
||||
14 EQ: "Eq" => {
|
||||
0 EQ_EQ: "Eq" exposed_type=true
|
||||
1 EQ_IS_EQ: "isEq"
|
||||
2 EQ_IS_NOT_EQ: "isNotEq"
|
||||
3 EQ_STRUCTURAL_EQ: "structuralEq"
|
||||
}
|
||||
15 JSON: "Json" => {
|
||||
0 JSON_JSON: "Json"
|
||||
}
|
||||
|
||||
num_modules: 15 // Keep this count up to date by hand! (TODO: see the mut_map! macro for how we could determine this count correctly in the macro)
|
||||
num_modules: 16 // Keep this count up to date by hand! (TODO: see the mut_map! macro for how we could determine this count correctly in the macro)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue