rec-def-0.1: Recusively defined values
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.POrder

Description

This module provides the POrder and related classes

Synopsis

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

Instances details
POrder Natural Source #

Ordered by '(<=)f'

Instance details

Defined in Data.POrder

POrder Bool Source #

Arbitrary using the False < True order

Instance details

Defined in Data.POrder

POrder a => POrder (Dual a) Source #

The dual order

Instance details

Defined in Data.POrder

Eq a => POrder (Set a) Source #

Ordered by subsetOf

Instance details

Defined in Data.POrder

POrder a => POrder (Maybe a) Source #

Adds Nothing as a least element to an existing partial order

Instance details

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.

Methods

bottom :: a Source #

Instances

Instances details
Bottom Natural Source #

Bottom is 0

Instance details

Defined in Data.POrder

Bottom Bool Source #

Bottom is False

Instance details

Defined in Data.POrder

Methods

bottom :: Bool Source #

Top a => Bottom (Dual a) Source #

Bottom is the top of a

Instance details

Defined in Data.POrder

Methods

bottom :: Dual a Source #

Eq a => Bottom (Set a) Source #

Bottom is empty

Instance details

Defined in Data.POrder

Methods

bottom :: Set a Source #

POrder a => Bottom (Maybe a) Source #

Bottom is Nothing

Instance details

Defined in Data.POrder

Methods

bottom :: Maybe a Source #

class POrder a => Top a where Source #

A class indicating that the type a is partially ordered and has a top element.

Methods

top :: a Source #

Instances

Instances details
Top Bool Source #

Top is True

Instance details

Defined in Data.POrder

Methods

top :: Bool Source #