io.travisbrown.abstracted.Empty.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abstracted_2.10 Show documentation
Show all versions of abstracted_2.10 Show documentation
abstracted: forget your instance methods
The newest version!
package io.travisbrown.abstracted
/**
* Wraps a value but doesn't have any other methods.
*/
case class Empty[A](a: A)
private[abstracted] final object Empty {
implicit def convert[A, B](e: Empty[A])(implicit converter: Converter[A, B]): B = converter(e)
}