summaryrefslogblamecommitdiff
path: root/test/files/pos/t8708/Test_2.scala
blob: d0e56b9a3743c89b3a0e5f9811d96c5431dff72d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                            
import scala.language.higherKinds

trait ClientTypes[M[+_]] {
  final type Context[+A] = EitherT[M, String, A]
  object Context {
    def apply[A](ca: M[String \/ A]): Context[A] = EitherT[M, String, A](ca)
  }

  final type StatefulContext[+A] = EitherT[Context, String, A]
  object StatefulContext {
    def apply[A](state: Context[String \/ A]): StatefulContext[A] = ???
  }
}