2 Commits

Author SHA1 Message Date
Johan B.W. de Vries
dd4b9373ac Removes the special casing for foldl
Has to implement both functions as arguments and type
place holders (variables) for type constructors.

Probably have to introduce a type for functions
2025-05-13 19:38:20 +02:00
Johan B.W. de Vries
b5f0fda133 Implements sum for Foldable types
Foldable take a TypeConstructor. The first argument must be a
NatNum.

The FunctionSignatureRouter wasn't completely on point, instead
this commit adds an TypeClassArgsRouter lookup router. This
makes sense since the only available arguments we have to find
a router is the list of type class arguments.
2025-05-12 18:36:37 +02:00