A helper method that simplifies creation of Liftable
instances.
A helper method that simplifies creation of Liftable
instances.
Takes a type and a function that maps that type to a tree representation.
For example to write Liftable for object one might use it like:
scala> object O scala> val Oref = symbolOf[O.type].asClass.module scala> implicit val liftO = Liftable[O.type] { _ => q"$Oref" } scala> val lifted = q"$O" lifted: universe.Tree = O
Companion to
Liftable
type class that contains standard instances and provides a helperapply
method to simplify creation of new ones.