mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
misc cleanup suggestions
This commit is contained in:
parent
1b7fdc9522
commit
c49046291a
5 changed files with 47 additions and 58 deletions
|
@ -111,8 +111,6 @@ pub(crate) fn derive_to_inspector(
|
|||
|
||||
fn to_inspector_list(env: &mut Env<'_>, fn_name: Symbol) -> (Expr, Variable) {
|
||||
// Build \lst -> list, List.walk, (\elem -> Inspect.toInspector elem)
|
||||
//
|
||||
// TODO eta reduce this baby ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
use Expr::*;
|
||||
|
||||
|
@ -954,11 +952,6 @@ fn to_inspector_tag_union(
|
|||
}
|
||||
|
||||
/// Lift `inspector` to `Inspect.custom \fmt -> Inspect.apply inspector fmt`
|
||||
///
|
||||
/// TODO: currently it appears that just `inspector` is not isomorphic to the lift, on the
|
||||
/// monomorphization level, even though we would think it is. In particular, unspecialized lambda
|
||||
/// sets fail to resolve when we use the non-lifted version.
|
||||
/// More investigation is needed to figure out why.
|
||||
fn wrap_in_inspect_custom(
|
||||
env: &mut Env,
|
||||
inspector: Expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue