extra-data-yj-0.1.0.0: Additional data types
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Or

Documentation

data Or a b Source #

Constructors

L a 
R b 
LR a b 

Instances

Instances details
(Read a, Read b) => Read (Or a b) Source # 
Instance details

Defined in Data.Or

Methods

readsPrec :: Int -> ReadS (Or a b) #

readList :: ReadS [Or a b] #

readPrec :: ReadPrec (Or a b) #

readListPrec :: ReadPrec [Or a b] #

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

Defined in Data.Or

Methods

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

show :: Or a b -> String #

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

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

Defined in Data.Or

Methods

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

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

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

Defined in Data.Or

Methods

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

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

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

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

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

max :: Or a b -> Or a b -> Or a b #

min :: Or a b -> Or a b -> Or a b #

or :: (a -> c) -> (b -> c) -> (a -> b -> c) -> Or a b -> c Source #

lefts :: [Or a b] -> [a] Source #

rights :: [Or a b] -> [b] Source #

fromLeft :: a -> Or a b -> a Source #

fromRight :: b -> Or a b -> b Source #

partitionOrs :: [Or a b] -> ([a], [b]) Source #