Skip to content

Commit 3b2db99

Browse files
Adelbert Changxuwei-k
authored andcommitted
Add type/value aliases for scalaz.\/ and co.
Add type/value aliases for: * Disjunction <=> \/ * DLeft <=> -\/ * DRight <=> \/- * DisjunctionT <=> EitherT (cherry picked from commit 32cd731)
1 parent 50f82cb commit 3b2db99

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

core/src/main/scala/scalaz/package.scala

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,5 +299,16 @@ package object scalaz {
299299
val IMap = ==>>
300300

301301
type GlorifiedTuple[+A, +B] = A \/ B
302-
type Disjunction[+A, +B] = A \/ B
302+
303+
type Disjunction[+A, +B] = \/[A, B]
304+
val Disjunction = \/
305+
306+
type DLeft[+A] = -\/[A]
307+
val DLeft = -\/
308+
309+
type DRight[+B] = \/-[B]
310+
val DRight = \/-
311+
312+
type DisjunctionT[F[_], A, B] = EitherT[F, A, B]
313+
val DisjunctionT = EitherT
303314
}

0 commit comments

Comments
 (0)