Skip to content

Instantly share code, notes, and snippets.

@softberries
Created December 13, 2019 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/1a4ae8f5f66c3534657bf73b787e8cd9 to your computer and use it in GitHub Desktop.
Save softberries/1a4ae8f5f66c3534657bf73b787e8cd9 to your computer and use it in GitHub Desktop.
package repositories
import models.Person
trait PersonRepository[F[_]] {
def get(name: String): F[Option[Person]]
def create(name: String, age: Int): F[Person]
def list(): F[Seq[Person]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment