scalaz.Scalaz.scala Maven / Gradle / Ivy
The newest version!
package scalaz
import concurrent._
object Scalaz extends Actors
with Alphas
with Applys
with ArrayBytes
with BigIntegers
with BigInts
with BKTrees
with Booleans
with BooleanConjunctions
with Bytes
with Chars
with CharSets
with Cokleislis
with Digits
with Duals
with Effects
with Emptys
with Endos
with Enumerations
with Equals
with Extras
with FirstOptions
with FirstLazyOptions
with Function0s
with Function1s
with Function2s
with Kleislis
with Identitys
with InputStreams
with Ints
with LastOptions
with LastLazyOptions
with LazyTuples
with Lists
with Loggers
with Longs
with MABs
with MetricSpaces
with Memos
with Multiplications
with Names
with NonEmptyLists
with Options
with OptionTs
with Orders
with Promises
with Reducers
with Resources
with Semigroups
with FingerTree.IndSeqs
with FingerTree.Ropes
with Shorts
with Shows
with States
with Streams
with Strings
with Trees
with Tuples
with TreeLocs
with Writers
with WriterTs
with Validations
with Zeros
with Zippers
with ZipStreams {
def ⊥ = error_("undefined")
def undefined = ⊥
type ⊤ = Any
type ⊥ = Nothing
type ℤ = scala.math.BigInt
lazy val π = java.lang.Math.PI
lazy val π2 = π * 2
type ArraySeq[A] = collection.mutable.ArraySeq[A]
val ArraySeq = collection.mutable.ArraySeq
def ×[A, B] = (a: A) => (b: B) => (a, b)
def pure[F[_] : Pure] = new (Id ~> F) {
def apply[A](a: A) = implicitly[Pure[F]].pure(a)
}
// This is to avoid calliing Predef.error (deprecated in 2.9.x), or error_ (not available in
// 2.8.1. Despite being private[scalaz], we can't just call this `error`, as even outside
// of the package it is importable (bug?) `import Scalaz._; import Predef; error() // ambiguous!
//
// Drop this when we drop 2.8.1 support.
private[scalaz] def error_(m: String) = throw new RuntimeException(m)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy