How to sequence Either with Scala cats without a type alias (see Herding cats)

痞子三分冷 提交于 2019-11-29 12:24:20

Your code lacks scalac option -Ypartial-unification.

In build.sbt you should add

scalaVersion := "2.12.6"

libraryDependencies += "org.typelevel" %% "cats-core" % "1.1.0"

scalacOptions += "-Ypartial-unification"

or start Scala console with command

scala -Ypartial-unification

http://eed3si9n.com/herding-cats/partial-unification.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!