3 ms·
This is a pretty good article that I think will answer your question: https://eli.thegreenplace.net/2018/more-thoughts-on-the-expression-problem-in-haskell/ htt
by fanf2 6y ago
This is a pretty good article that I think will answer your question: https://eli.thegreenplace.net/2018/more-thoughts-on-the-expression-problem-in-haskell/ https://eli.thegreenplace.net/2018/more-thoughts-on-the-expr... - it shows how typeclasses almost but not quite solve the Expression Problem, then goes on to use higher-kinded types for a more complete solution.