Created
December 13, 2019 07:56
-
-
Save softberries/1a4ae8f5f66c3534657bf73b787e8cd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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