Search code examples
scalamonadsscala-cats

Where is StateT in Cats?


I have in my sbt:

"org.typelevel" %% "cats-core" % "2.0.0-M1",
"org.typelevel" %% "cats-effect" % "1.3.1",
"org.typelevel" %% "cats-free" % "2.0.0-M3"

But can't import StateT in code.

In what module is it?

It's referred to here http://eed3si9n.com/herding-cats/State.html


Solution

  • StateT is in cats-core

    import cats.data.StateT
    

    where

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