This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait UnionOf[L <: HList] { | |
type Mix | |
type Out = not[Mix] | |
type is[O] = UnionAux[L, O] | |
} | |
/* Implicits for constructing union: */ | |
object UnionOf { | |
implicit val nil = | |
new UnionOf[HNil] { type Mix = not[Nothing] } |