Skip to content

Use cats' MonadError instead of providing your own #409

@vilunov

Description

@vilunov

Hi!

sttp in both major versions has its own MonadError[F] definition and its implementations (doc). Meanwhile, cats already have a definition of MonadError[F, T], which is generalization of sttp's typeclass for T=Throwable doc.

In my code where I have to use both of these type classes for my own type constructors, and I feel like defining instances for both of them is a bit anti-ergonomic. Would it be too bad for sttp to depend on cats-core and its type classes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions