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
| import cats.data.NonEmptyList | |
| import fetch._ | |
| trait DataSource[Identity, Result]{ | |
| def fetchOne(id: Identity): Query[Option[Result]] | |
| def fetchMany(ids: NonEmptyList[Identity]): Query[Map[Identity, Result]] | |
| } | |
| type UserId = Int | |
| case class User(id: UserId, username: String) |
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
| import cats.data.NonEmptyList | |
| import fetch._ | |
| trait DataSource[Identity, Result]{ | |
| def fetchOne(id: Identity): Query[Option[Result]] | |
| def fetchMany(ids: NonEmptyList[Identity]): Query[Map[Identity, Result]] | |
| } | |
| type UserId = Int | |
| case class User(id: UserId, username: String) |
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
| import cats.data.NonEmptyList | |
| import fetch._ | |
| trait DataSource[Identity, Result]{ | |
| def fetchOne(id: Identity): Query[Option[Result]] | |
| def fetchMany(ids: NonEmptyList[Identity]): Query[Map[Identity, Result]] | |
| } | |
| type UserId = Int | |
| case class User(id: UserId, username: String) |
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
| val meaningOfLife = 42 |
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
| val meaningOfLife = 42 |
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
| import cats.data.NonEmptyList | |
| import fetch._ | |
| trait DataSource[Identity, Result]{ | |
| def fetchOne(id: Identity): Query[Option[Result]] | |
| def fetchMany(ids: NonEmptyList[Identity]): Query[Map[Identity, Result]] | |
| } | |
| type UserId = Int | |
| case class User(id: UserId, username: String) |
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
| import cats.data.NonEmptyList | |
| import fetch._ | |
| trait DataSource[Identity, Result]{ | |
| def fetchOne(id: Identity): Query[Option[Result]] | |
| def fetchMany(ids: NonEmptyList[Identity]): Query[Map[Identity, Result]] | |
| } | |
| type UserId = Int | |
| case class User(id: UserId, username: String) |
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
| val meaningOfLife = 42 |
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
| val meaningOfLife = 42 |
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
| val meaningOfLife = 42 |