misc cleanup suggestions

This commit is contained in:
Brendan Hansknecht 2023-11-28 16:29:15 -08:00
parent 1b7fdc9522
commit c49046291a
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
5 changed files with 47 additions and 58 deletions

View file

@ -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,