mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Add deriving of immediates for the Hash ability
This commit is contained in:
parent
7bd6523175
commit
427528e659
7 changed files with 134 additions and 0 deletions
|
@ -18,6 +18,7 @@ use util::Env;
|
|||
|
||||
mod decoding;
|
||||
mod encoding;
|
||||
mod hash;
|
||||
|
||||
mod util;
|
||||
|
||||
|
@ -77,6 +78,7 @@ fn build_derived_body(
|
|||
DeriveKey::Decoder(decoder_key) => {
|
||||
decoding::derive_decoder(&mut env, decoder_key, derived_symbol)
|
||||
}
|
||||
DeriveKey::Hash(hash_key) => hash::derive_hash(&mut env, hash_key, derived_symbol),
|
||||
};
|
||||
|
||||
let def = Def {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue