Skip to content

Instantly share code, notes, and snippets.

@iref
Created October 26, 2017 12:54
Show Gist options
  • Save iref/e81984befd046e6481f6afb09c7083bd to your computer and use it in GitHub Desktop.
Save iref/e81984befd046e6481f6afb09c7083bd to your computer and use it in GitHub Desktop.
import scala.language.higherKinds
import cats.data._
import cats.effect.Sync
import cats.implicits._
import org.http4s.HttpService
import org.http4s.dsl.Http4sDsl
import org.http4s.implicits._
class Example[F[_] : Sync] extends Http4sDsl[F] {
private def get: HttpService[F] = ???
private def post: HttpService[F] = ???
def endpoints(): HttpService[F] =
get.combineK(post)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment