Generic Branded Type Constructors
I would like to have generic branded type constructors like so:
At current, the alternative is the following, which does not allow to compose generic branded constructors with
The implementation could look something like this
I didn't take the time to look into
At current, the alternative is the following, which does not allow to compose generic branded constructors with
Brand.allThe implementation could look something like this
I didn't take the time to look into
Brand.all but the idea would be that if there are concrete branded constructors in the arguments list, the generic ones should take the intersection of their base values as input, otherwise the return value is generic.