Skip to content

v1.12.0

Compare
Choose a tag to compare
@kevin-lee kevin-lee released this 23 Jul 11:52
· 529 commits to main since this release
7b7a7d2

1.12.0 - 2021-07-23

Done

  • Add a shorter alternative name to EffectConstructor (#220)
  • Rename Eft Fx (#234)
  • Add EitherT extension methods (#230)
    val fab: F[Either[A, B]] = ???
    fab.eitherT // EitherT[F, A, B]
    
    val ab: Either[A, B] = ???
    ab.eitherT[F] // Either[F, A, B]
    
    val fb: F[B] = ???
    fb.rightT[A] // EitherT[F, A, B]
    
    val b = ???
    b.rightTF[F, A] // EitherT[F, A, B]
    
    val fa: F[A] = ???
    fa.leftT[B] // EitherT[F, A, B]
    
    val a: A = ???
    a.leftTF[F, B] // EitherT[F, A, B]
  • Add OptionT extension methods (#231)
    val foa: F[Option[A]] = ???
    foa.optionT // OptionT[F, A]
    
    val oa: Option[A] = ???
    oa.optionT[F] // Option[F, A]
    
    val fa: F[A] = ???
    fa.someT OptionT[F, A] // OptionT[F, A]
    
    val a = ???
    a.someTF[F] // OptionT[F, A]
  • YesNo in Scala 3 should derive CanEqual (#237)