2 ms·
The problem there is composability. Foo and Bar might come from different libraries. Also it's very common to define one typeclass in terms of another, often se
by lmm 11y ago
The problem there is composability. Foo and Bar might come from different libraries. Also it's very common to define one typeclass in terms of another, often several layers deep. It's easy enough to define a wrapper at an outer layer, but when you have an EitherT[WriterT[Future, MyLog, ?], MyError, MyValue] it becomes quite clunky to apply wrappers to MyLog and Future.