mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
WIP send panics to the repl more gracefully
This commit is contained in:
parent
45e800c328
commit
a36ddbf6cb
5 changed files with 31 additions and 14 deletions
|
@ -107,7 +107,11 @@ impl<'a> ReplApp<'a> for CliApp {
|
|||
|
||||
/// Run user code that returns a type with a `Builtin` layout
|
||||
/// Size of the return value is statically determined from its Rust type
|
||||
fn call_function<Return, F>(&mut self, main_fn_name: &str, mut transform: F) -> Expr<'a>
|
||||
fn call_function<Return, F>(
|
||||
&mut self,
|
||||
main_fn_name: &str,
|
||||
mut transform: F,
|
||||
) -> Result<Expr<'a>, String>
|
||||
where
|
||||
F: FnMut(&'a Self::Memory, Return) -> Expr<'a>,
|
||||
Self::Memory: 'a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue