std.alternative

Types

type Alternative f = {
    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 . [Alternative f] -> f a

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

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

Alias of or