basement-0.0.16: Foundation scrap box of array & string
LicenseBSD-style
MaintainerNicolas Di Prima <nicolas@primetype.co.uk>
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Basement.These

Description

These a b, sum type to represent either a or b or both.

Synopsis

Documentation

data These a b Source #

Either a or b or both.

Constructors

This a 
That b 
These a b 

Instances

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

Defined in Basement.These

Methods

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

show :: These a b -> String #

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

(NormalForm a, NormalForm b) => NormalForm (These a b) Source # 
Instance details

Defined in Basement.These

Methods

toNormalForm :: These a b -> () Source #

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

Defined in Basement.These

Methods

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

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

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

Defined in Basement.These

Methods

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

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

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

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

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

max :: These a b -> These a b -> These a b #

min :: These a b -> These a b -> These a b #

From (Either a b) (These a b) Source # 
Instance details

Defined in Basement.From

Methods

from :: Either a b -> These a b Source #