Portability | semi-portable (overlapping instances, etc) |
---|---|
Stability | experimental |
Maintainer | [email protected] |
Data.Number.PartialOrd
Description
Documentation
class PartialOrd a whereSource
This class defines a partially ordered type. The method names
were chosen so as not to conflict with Ord
and Eq
. We use
Maybe
instead of defining new types PartialOrdering
and
FuzzyBool
because this way should make the class easier to
use.
Minimum complete definition: cmp
Methods
cmp :: a -> a -> Maybe OrderingSource
gt :: a -> a -> Maybe BoolSource
ge :: a -> a -> Maybe BoolSource
eq :: a -> a -> Maybe BoolSource
ne :: a -> a -> Maybe BoolSource
Instances