Ai
1 Star 0 Fork 0

mefan/cats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MonadReader.scala 346 Bytes
一键复制 编辑 原始数据 按行查看 历史
Cody Allen 提交于 2015-10-05 20:12 +08:00 . Change MonadReader from F[, _] to F[]
package cats
/** A monad that has the ability to read from an environment. */
trait MonadReader[F[_], R] extends Monad[F] {
/** Get the environment */
def ask: F[R]
/** Modify the environment */
def local[A](f: R => R)(fa: F[A]): F[A]
}
object MonadReader {
def apply[F[_], R](implicit F: MonadReader[F, R]): MonadReader[F, R] = F
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mefaso/cats.git
git@gitee.com:mefaso/cats.git
mefaso
cats
cats
master

搜索帮助