summaryrefslogblamecommitdiff
path: root/test/files/pos/t8708/Either_1.scala
blob: 000ed6e7c283388cfbb3a585800de42b4cdbfaaf (plain) (tree)
1
2
3
4
5
6





                                                                                               
sealed trait \/[+A, +B]

sealed trait EitherT[F[+_], +A, +B]
object EitherT {
  def apply[F[+_], A, B](a: F[A \/ B]): EitherT[F, A, B] = new EitherT[F, A, B] { val run = a }
}