Created
January 20, 2020 05:39
-
-
Save emmettna/84ead1a4e91b576d1a66f054c8bb9f3a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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