How to Restrict Type `E` to Extend `Data.TaggedError` in a Generic Function
Hello guys! A quick question: All errors in my apps are done in the following way
I need to write a generic function that accepts and effect with this kind of errors, example:
How can I making the type
I need to write a generic function that accepts and effect with this kind of errors, example:
How can I making the type
E extends a Data.TaggedError?