mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Create a new crate roc_repl_ui for shared CLI/web UI code
This commit is contained in:
parent
dbf928bc46
commit
8f59ee9492
13 changed files with 701 additions and 8 deletions
|
@ -180,7 +180,6 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
|
|||
|
||||
// Compile the app
|
||||
let target_info = TargetInfo::default_wasm32();
|
||||
let function_kind = roc_solve::FunctionKind::LambdaSet;
|
||||
// TODO use this to filter out problems and warnings in wrapped defs.
|
||||
// See the variable by the same name in the CLI REPL for how to do this!
|
||||
let mono = match compile_to_mono(
|
||||
|
@ -188,7 +187,6 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
|
|||
std::iter::empty(),
|
||||
&src,
|
||||
target_info,
|
||||
function_kind,
|
||||
DEFAULT_PALETTE_HTML,
|
||||
) {
|
||||
(Some(m), problems) if problems.is_empty() => m, // TODO render problems and continue if possible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue