relation-0.5: A data structure representing Relations on Sets.

Safe HaskellSafe
LanguageHaskell2010

Data.Relation.Internal

Synopsis

Documentation

data Relation a b Source #

Representation of a relation on ordered (Ord) values

Constructors

Relation 

Fields

Instances
(Eq a, Eq b) => Eq (Relation a b) Source # 
Instance details

Defined in Data.Relation.Internal

Methods

(==) :: Relation a b -> Relation a b -> Bool #

(/=) :: Relation a b -> Relation a b -> Bool #

(Ord a, Ord b) => Ord (Relation a b) Source # 
Instance details

Defined in Data.Relation.Internal

Methods

compare :: Relation a b -> Relation a b -> Ordering #

(<) :: Relation a b -> Relation a b -> Bool #

(<=) :: Relation a b -> Relation a b -> Bool #

(>) :: Relation a b -> Relation a b -> Bool #

(>=) :: Relation a b -> Relation a b -> Bool #

max :: Relation a b -> Relation a b -> Relation a b #

min :: Relation a b -> Relation a b -> Relation a b #

(Show a, Show b) => Show (Relation a b) Source # 
Instance details

Defined in Data.Relation.Internal

Methods

showsPrec :: Int -> Relation a b -> ShowS #

show :: Relation a b -> String #

showList :: [Relation a b] -> ShowS #