Open regiskuckaertz opened 3 years ago
I think we definitely want to have a solution for these composed abstractions. We already have some work in this direction, for example the compose
operator on AssociativeBoth
, but I'm not sure this provides the ergonomics since I don't think you would be able to use it implicitly. Perhaps a new type version of the above would be the best solution.
I need to read how you define newtypes, but this data types:
is
IdentityBoth
,ForEach
, etc. if its two underlying containers are. I will define this in my codebase but happy to contribute it if this sounds interesting.