Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emmettna/84ead1a4e91b576d1a66f054c8bb9f3a to your computer and use it in GitHub Desktop.
Save emmettna/84ead1a4e91b576d1a66f054c8bb9f3a to your computer and use it in GitHub Desktop.
final case class Human(name: String, age: Int)
trait SimpleCrud[F[_]] {
val simpleCrudService: SimpleCrud.Service[F]
}
object SimpleCrud {
trait Service[F[_]] {
def add: F[Unit]
def find(name: Name): F[Option[Human]]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment