Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module provides the POrder
and related classes
Documentation
class Eq a => POrder a Source #
This (empty) class indicates that the type a
is partially ordered.
The class is empty because we do not need any of the operations on runtime.
Nevertheless the order better exists for the safety of this API.
This order may be unrelated to the total order given by Ord
.
Instances
POrder Natural Source # | Ordered by '(<=)f' |
Defined in Data.POrder | |
POrder Bool Source # | Arbitrary using the |
Defined in Data.POrder | |
POrder a => POrder (Dual a) Source # | The dual order |
Defined in Data.POrder | |
Eq a => POrder (Set a) Source # | Ordered by |
Defined in Data.POrder | |
POrder a => POrder (Maybe a) Source # | Adds |
Defined in Data.POrder |
class POrder a => Bottom a where Source #
A class indicating that the type a
is partially ordered and has a bottom
element.
Instances
Bottom Natural Source # | Bottom is 0 |
Defined in Data.POrder | |
Bottom Bool Source # | Bottom is |
Defined in Data.POrder | |
Top a => Bottom (Dual a) Source # | Bottom is the |
Defined in Data.POrder | |
Eq a => Bottom (Set a) Source # | Bottom is |
Defined in Data.POrder | |
POrder a => Bottom (Maybe a) Source # | Bottom is |
Defined in Data.POrder |