mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Changed singleton to single
This commit is contained in:
parent
618dea11e6
commit
b22672fb0e
9 changed files with 34 additions and 34 deletions
|
@ -925,8 +925,8 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
dict_type(star, k, v)
|
||||
});
|
||||
|
||||
// singleton : k, v -> Attr * (Dict k v)
|
||||
add_type(Symbol::DICT_SINGLETON, {
|
||||
// single : k, v -> Attr * (Dict k v)
|
||||
add_type(Symbol::DICT_SINGLE, {
|
||||
let_tvars! { star, k , v };
|
||||
unique_function(vec![flex(k), flex(v)], dict_type(star, k, v))
|
||||
});
|
||||
|
@ -1012,8 +1012,8 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
set_type(star, a)
|
||||
});
|
||||
|
||||
// singleton : a -> Set a
|
||||
add_type(Symbol::SET_SINGLETON, {
|
||||
// single : a -> Set a
|
||||
add_type(Symbol::SET_SINGLE, {
|
||||
let_tvars! { star, a };
|
||||
unique_function(vec![flex(a)], set_type(star, a))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue