mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Merge pull request #3531 from rtfeldman/decode
Very basic Decode.roc in the standard library
This commit is contained in:
commit
fa14146054
13 changed files with 588 additions and 90 deletions
|
@ -12,6 +12,7 @@ pub fn module_source(module_id: ModuleId) -> &'static str {
|
|||
ModuleId::BOX => BOX,
|
||||
ModuleId::BOOL => BOOL,
|
||||
ModuleId::ENCODE => ENCODE,
|
||||
ModuleId::DECODE => DECODE,
|
||||
ModuleId::JSON => JSON,
|
||||
_ => panic!(
|
||||
"ModuleId {:?} is not part of the standard library",
|
||||
|
@ -29,4 +30,5 @@ const SET: &str = include_str!("../roc/Set.roc");
|
|||
const BOX: &str = include_str!("../roc/Box.roc");
|
||||
const BOOL: &str = include_str!("../roc/Bool.roc");
|
||||
const ENCODE: &str = include_str!("../roc/Encode.roc");
|
||||
const DECODE: &str = include_str!("../roc/Decode.roc");
|
||||
const JSON: &str = include_str!("../roc/Json.roc");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue