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
package me.limansky | |
import shapeless.ops.hlist.Prepend | |
import shapeless.{::, <:!<, Generic, HList, HNil, LabelledGeneric, Lazy} | |
import shapeless.labelled.FieldType | |
trait UnZip[-F,T] { | |
def apply(f: F): T | |
} |
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
import shapeless._ | |
trait GenericNested[P] { | |
type Repr | |
def to(p: P): Repr | |
def from(o: Repr): P | |
} | |
class LowPriorityNested { | |
type Aux[P, Repr0] = GenericNested[P] { type Repr = Repr0 } | |
implicit def base[T] = new GenericNested[T] { |