Open
Description
Somewhat related to #1347 (comment), the c
command (defined in Eval.hs, function commandC
on line 975) spits out a lot of errors if a definition generates generic functions as dependencies.
Example:
鲤 (defn f [] (fn [x] x))
鲤 (c f)
I found an unresolved generic type `(Fn [t2] t2 t4)` for the expression `(defn <> _Lambda_f_7_env__?_? [x] x)` at line 2, column 12 in 'REPL', can't print resulting code.
I found an unresolved generic type `(Fn [t2] t2 t4)` for the expression `(defn <> _Lambda_f_7_env__?_? [x] x)` at line 2, column 12 in 'REPL', can't print resulting code.
I found an unresolved generic type `(Fn [(Fn [t2] t2 t4)] ())` for the expression `(instantiate Function.delete__?_?)` at unknown line, unknown column in 'Function.delete__?_? template', can't print resulting code.
I found an unresolved generic type `(Fn [] (Fn [a] a b))` for the expression `(defn f [] (fn <> [x] x))` at line 2, column 2 in 'REPL', can't print resulting code.
A better behaviour would be to simply not try print generic dependencies.