Module do_applicative

The Applicative Type Class.

This module defines the do_applicative behaviour.
Required callback functions: pure/1, liftA2/2.

Description

The Applicative Type Class.

Data Types

applicative()

applicative(A) = [A] | fn(term(), A) | either(term(), A) | maybe(A)

either()

either(A, B) = {error, A} | {ok, B}

fn()

fn(A, B) = fun((A) -> B)

maybe()

maybe(A) = {just, A} | nothing

Function Index

liftA2/2

Function Details

liftA2/2

liftA2(A1::applicative(fn(A, B)), A2::applicative(A)) -> applicative(B)


Generated by EDoc