Options
All
  • Public
  • Public/Protected
  • All
Menu

Data type for expressing equivalence in type class laws.

All laws expressed by this sub-project are expressed in terms of such equivalences.

An Equiv represents a sentence whose truthiness remains to be proved in testing:

Equiv.of(a, b) <-> a is equivalent to b

Note equivalence may or may not imply equality. Some types cannot declare an equality operation (e.g. functions, or Promise because it needs asynchronous execution). Equivalence simply means that the left hand value can always be substituted by the right hand value and vice versa, without changing the output of the program (see referential transparency).

final

Type parameters

  • A

Hierarchy

  • Equiv

Index

Methods

Methods

Static of

  • of<A>(lh: A, rh: A): Equiv<A>
  • Type parameters

    • A

    Parameters

    • lh: A
    • rh: A

    Returns Equiv<A>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc