std.bool

The boolean type.

Types

type Bool = 
    | False
    | True

Bool represents a value which can only be True or False

Values

let not x : Bool -> Bool

Boolean 'not'

let xor x y : Bool -> Bool -> Bool

Boolean 'exclusive or'

let conjunctive : { semigroup : Semigroup Bool, monoid : Monoid Bool }

let disjunctive : { semigroup : Semigroup Bool, monoid : Monoid Bool }

let exclusive : { semigroup : Semigroup Bool, monoid : Monoid Bool, group : Group Bool }

#[implicit]
let eq : Eq Bool

Eq a defines equality (==) on a

#[implicit]
let ord : Ord Bool

Ord a defines an ordering on a

#[implicit]
let show : Show Bool

Show a represents a conversion function from a to a readable string.