Reorganize ReplState logic for cli/wasm compat

This commit is contained in:
Richard Feldman 2023-09-08 15:37:16 -04:00
parent e010e7239f
commit dbf928bc46
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
4 changed files with 315 additions and 300 deletions

View file

@ -50,7 +50,6 @@ pub fn compile_to_mono<'a, 'i, I: Iterator<Item = &'i str>>(
defs: I,
expr: &str,
target_info: TargetInfo,
function_kind: FunctionKind,
palette: Palette,
) -> (Option<MonomorphizedModule<'a>>, Problems) {
let filename = PathBuf::from("");
@ -64,7 +63,7 @@ pub fn compile_to_mono<'a, 'i, I: Iterator<Item = &'i str>>(
RocCacheDir::Persistent(cache::roc_cache_dir().as_path()),
LoadConfig {
target_info,
function_kind,
function_kind: FunctionKind::LambdaSet,
render: roc_reporting::report::RenderTarget::ColorTerminal,
palette,
threading: Threading::Single,