Page
Library
Module
Module type
Parameter
Class
Class type
Source
Popper.ComparatorSourceThis module exposes a type 'a t. A value of type a t is used for comparing and pretty printing values of type a.
make compare pp constructs a comparator using the given compare to compare value and pp to print them.
pp c x prints x using the c comparator.
tuple c1 c2 creates a comparator for tuples using the comparators c1 and c2.
tuple c creates a comparator for lists using the the comparator c.
array c creates a comparator for arrays using the the comparator c.
option c creates a comparator for options using the the comparator c.