Skip to content

Commit

Permalink
Add IdT, the identity monad transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
vikraman committed Oct 27, 2015
1 parent 1671a8d commit 8a7ee68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/scala/cats/data/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ package object data {
}
}

type IdT[M[_], A] = M[A]
object IdT {
def apply[M[_], A](ma: M[A]): IdT[M, A] = ma
}

type ReaderT[F[_], A, B] = Kleisli[F, A, B]
val ReaderT = Kleisli

Expand Down

0 comments on commit 8a7ee68

Please sign in to comment.