Skip to content

Commit

Permalink
No need for kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 3, 2023
1 parent ac89ad3 commit fab0983
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.http4s.client.Client
import smithy4s.Service
import smithy4s.UnsupportedProtocolError
import smithy4s.http4s.SimpleProtocolBuilder
import smithy4s.kinds._

import java.util.ServiceLoader
import scala.jdk.CollectionConverters._
Expand Down Expand Up @@ -36,7 +35,7 @@ trait SimpleHttpBuilder {
def client[Alg[_[_, _, _, _, _]], F[_]: Concurrent](
service: Service[Alg],
backend: Client[F],
): Either[UnsupportedProtocolError, FunctorAlgebra[Alg, F]]
): Either[UnsupportedProtocolError, service.Impl[F]]

}

Expand All @@ -50,8 +49,7 @@ object SimpleHttpBuilder {
def client[Alg[_[_, _, _, _, _]], F[_]: Concurrent](
service: Service[Alg],
backend: Client[F],
): Either[UnsupportedProtocolError, FunctorAlgebra[Alg, F]] =
builder(service).client(backend).use
): Either[UnsupportedProtocolError, service.Impl[F]] = builder(service).client(backend).make

}

Expand Down

0 comments on commit fab0983

Please sign in to comment.