Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version of deprecation to 1.0.0-RC2 #2108

Merged
merged 1 commit into from
Dec 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private[data] sealed trait CommonIRWSTConstructors {
def liftK[F[_], E, L, S](implicit F: Applicative[F], L: Monoid[L]): F ~> IndexedReaderWriterStateT[F, E, L, S, S, ?] =
λ[F ~> IndexedReaderWriterStateT[F, E, L, S, S, ?]](IndexedReaderWriterStateT.liftF(_))

@deprecated("Use liftF instead", "1.0.0")
@deprecated("Use liftF instead", "1.0.0-RC2")
def lift[F[_], E, L, S, A](fa: F[A])(implicit F: Applicative[F], L: Monoid[L]): IndexedReaderWriterStateT[F, E, L, S, S, A] =
IndexedReaderWriterStateT((_, s) => F.map(fa)((L.empty, s, _)))

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/IndexedStateT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private[data] trait CommonStateTConstructors {
def liftK[F[_], S](implicit F: Applicative[F]): F ~> IndexedStateT[F, S, S, ?] =
λ[F ~> IndexedStateT[F, S, S, ?]](IndexedStateT.liftF(_))

@deprecated("Use liftF instead", "1.0.0")
@deprecated("Use liftF instead", "1.0.0-RC2")
def lift[F[_], S, A](fa: F[A])(implicit F: Applicative[F]): IndexedStateT[F, S, S, A] =
IndexedStateT(s => F.map(fa)(a => (s, a)))

Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/data/Kleisli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final case class Kleisli[F[_], A, B](run: A => F[B]) { self =>
def local[AA](f: AA => A): Kleisli[F, AA, B] =
Kleisli(f.andThen(run))

@deprecated("Use mapK", "1.0.0")
@deprecated("Use mapK", "1.0.0-RC2")
def transform[G[_]](f: FunctionK[F, G]): Kleisli[G, A, B] =
mapK(f)

Expand Down Expand Up @@ -100,7 +100,7 @@ private[data] sealed trait KleisliFunctions {
def liftK[F[_], A]: F ~> Kleisli[F, A, ?] =
λ[F ~> Kleisli[F, A, ?]](Kleisli.liftF(_))

@deprecated("Use liftF instead", "1.0.0")
@deprecated("Use liftF instead", "1.0.0-RC2")
def lift[F[_], A, B](x: F[B]): Kleisli[F, A, B] =
Kleisli(_ => x)

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/WriterT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object WriterT extends WriterTInstances with WriterTFunctions {
def liftK[F[_], L](implicit monoidL: Monoid[L], F: Applicative[F]): F ~> WriterT[F, L, ?] =
λ[F ~> WriterT[F, L, ?]](WriterT.liftF(_))

@deprecated("Use liftF instead", "1.0.0")
@deprecated("Use liftF instead", "1.0.0-RC2")
def lift[F[_], L, V](fv: F[V])(implicit monoidL: Monoid[L], F: Applicative[F]): WriterT[F, L, V] =
WriterT(F.map(fv)(v => (monoidL.empty, v)))

Expand Down
2 changes: 1 addition & 1 deletion free/src/main/scala/cats/free/Coyoneda.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sealed abstract class Coyoneda[F[_], A] extends Serializable { self =>
final def mapK[G[_]](f: F ~> G): Aux[G, A, Pivot] =
unsafeApply(f(fi))(ks)

@deprecated("Use mapK", "1.0.0")
@deprecated("Use mapK", "1.0.0-RC2")
final def transform[G[_]](f: FunctionK[F, G]): Aux[G, A, Pivot] =
mapK(f)

Expand Down