Make possible to use `defNamed*Lambda` with lambdas of arbitrary arity
Clarification and motivation
For now it's only possible to use defNamed*Lambda
only with 0 and 1 arity lambdas, that's not so convenient.
We should fix it. It will require to generalise content of Indigo.Backend.Lambda
via type classes. Also, StatementF
has to be generalised with appropriate constructors.
Acceptance criteria
- Write tests for it in
Examples.Lambda
Edited by Ilya Peresadin