No, I didn't think about Free or Tagless but I will take a look. Thanks for the suggestion!
I've been thinking that better than Promise<Either<Error>, T> I could use TaskEither:
Promise<Either<Error>, T>
TaskEither<L, A> represents an asynchronous computation that either yields a value of type A or fails yielding an error of type L.
TaskEither<L, A>
A
L
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
No, I didn't think about Free or Tagless but I will take a look. Thanks for the suggestion!
I've been thinking that better than
Promise<Either<Error>, T>
I could use TaskEither: