use user-provided seed

This commit is contained in:
Folkert 2021-02-09 22:25:01 +01:00
parent 31fc62b7f0
commit 352008e8a0
5 changed files with 30 additions and 11 deletions

View file

@ -4,7 +4,7 @@ use roc_module::symbol::Symbol;
use roc_region::all::Region;
use roc_types::builtin_aliases::{
bool_type, dict_type, float_type, int_type, list_type, nat_type, num_type, ordering_type,
result_type, set_type, str_type,
result_type, set_type, str_type, u64_type,
};
use roc_types::solved_types::SolvedType;
use roc_types::subs::VarId;
@ -729,10 +729,10 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// Dict module
// Dict.hashTestOnly : k, v -> Nat
// Dict.hashTestOnly : Nat, v -> Nat
add_type(
Symbol::DICT_TEST_HASH,
top_level_function(vec![flex(TVAR1), flex(TVAR2)], Box::new(nat_type())),
top_level_function(vec![u64_type(), flex(TVAR2)], Box::new(nat_type())),
);
// len : Dict * * -> Nat