std.alternative

Modules

Types

type Alternative f = {
    applicative : std.applicative.Applicative f,
    or : forall a . f a -> f a -> f a,
    empty : forall a . f a
}

A monoid on applicative functors.

Values

let empty ?alt : forall a f . [std.alternative.Alternative f] -> f a

let or ?alt : forall a f . [std.alternative.Alternative f] -> f a -> f a -> f a

let <|> : forall a f . [std.alternative.Alternative f] -> f a -> f a -> f a

Alias of or