Snippets

Brian McKenna Things which are useful in scala.Predef, re-exported

Created by Brian McKenna last modified
import scala.{ NotImplementedError, Nothing, inline }

object Prelude {
  type Array[A] = scala.Array[A]
  val Array = scala.Array

  type Boolean = scala.Boolean
  type Byte = scala.Byte
  type Char = scala.Char
  type Double = scala.Double
  type Float = scala.Float
  type Int = scala.Int
  type Long = scala.Long
  type Short = scala.Short
  type Unit = scala.Unit

  type String = java.lang.String

  def identity[A](x: A): A = x
  @inline def implicitly[T](implicit e: T): T = e

  def ??? : Nothing = throw new NotImplementedError

  implicit val languageHigherKinds: scala.language.higherKinds.type =
    scala.language.higherKinds

  implicit val languageImplicitConversions: scala.language.implicitConversions.type =
    scala.language.implicitConversions
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.