Applicative

jaskell.Applicative
trait Applicative[F[_]] extends Functor[F]

Attributes

Graph
Supertypes
trait Functor[F]
class Object
trait Matchable
class Any
Known subtypes
trait Monad[F]
object listMonad.type
object optionMonad.type
object tryMonad.type

Members list

Concise view

Value members

Inherited methods

def pure[A](x: A): F[A]

Attributes

Inherited from:
Functor

Extensions

Extensions

extension [A, B](fa: F[A => B])
def <*>(fb: F[A]): F[B]
def <|>(fb: F[A => B]): F[A => B]
extension [A, B, C](fx: F[(A, B) => C])
def liftA2(ax: F[A], bx: F[B]): F[C]
extension [A, B](x: F[A])
def *>(bx: F[B]): F[B]
def <*(bx: F[B]): F[A]

Inherited extensions

extension [A, B](x: F[A])
def <:>(f: A => B): F[B]

Attributes

Inherited from:
Functor
def flatMap(f: A => F[B]): F[B]

Attributes

Inherited from:
Functor
def fmap(f: A => B): F[B]

Attributes

Inherited from:
Functor
def map(f: A => B): F[B]

The unit value for a monad

The unit value for a monad

Attributes

Inherited from:
Functor