superquants.RawEvidence.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superquants_2.11 Show documentation
Show all versions of superquants_2.11 Show documentation
Scala: Typelevel unboxed compile time dimensional analysis over tagged types. Intellij Idea compatible 100%
The newest version!
package superquants
trait RawEvidence[T]
object RawEvidence {
private val stub = new RawEvidence[Nothing] {}
private def dummy[T]:T = stub.asInstanceOf[T]
implicit val rawEvidenceLong:RawEvidence[Long] = dummy
implicit val rawEvidenceDouble:RawEvidence[Double] = dummy
}