prelude-extras-0.4.0.2: Higher order versions of Prelude classes

Safe HaskellTrustworthy
LanguageHaskell98

Prelude.Extras

Contents

Synopsis

Lifted Prelude classes for kind * -> *

(/=#) :: (Eq1 f, Eq a) => f a -> f a -> Bool infixr 4 Source

class Eq1 f => Ord1 f where Source

Minimal complete definition

Nothing

Methods

compare1 :: Ord a => f a -> f a -> Ordering Source

(<#) :: (Ord1 f, Ord a) => f a -> f a -> Bool infixr 4 Source

(<=#) :: (Ord1 f, Ord a) => f a -> f a -> Bool infixr 4 Source

(>=#) :: (Ord1 f, Ord a) => f a -> f a -> Bool infixr 4 Source

(>#) :: (Ord1 f, Ord a) => f a -> f a -> Bool infixr 4 Source

max1 :: (Ord1 f, Ord a) => f a -> f a -> f a Source

min1 :: (Ord1 f, Ord a) => f a -> f a -> f a Source

show1 :: (Show1 f, Show a) => f a -> String Source

shows1 :: (Show1 f, Show a) => f a -> ShowS Source

read1 :: (Read1 f, Read a) => String -> f a Source

reads1 :: (Read1 f, Read a) => ReadS (f a) Source

readPrec1 :: (Read1 f, Read a) => ReadPrec (f a) Source

newtype Lift1 f a Source

Constructors

Lift1 

Fields

lower1 :: f a
 

Instances

Functor f => Functor (Lift1 f) Source 
Foldable f => Foldable (Lift1 f) Source 
Traversable f => Traversable (Lift1 f) Source 
Read1 f => Read1 (Lift1 f) Source 
Show1 f => Show1 (Lift1 f) Source 
Ord1 f => Ord1 (Lift1 f) Source 
Eq1 f => Eq1 (Lift1 f) Source 
(Eq1 f, Eq a) => Eq (Lift1 f a) Source 
(Ord1 f, Ord a) => Ord (Lift1 f a) Source 
(Read1 f, Read a) => Read (Lift1 f a) Source 
(Show1 f, Show a) => Show (Lift1 f a) Source 

Lifted Prelude classes for kind * -> * -> *

class Eq2 f where Source

Minimal complete definition

Nothing

Methods

(==##) :: (Eq a, Eq b) => f a b -> f a b -> Bool infixr 4 Source

Instances

(/=##) :: (Eq2 f, Eq a, Eq b) => f a b -> f a b -> Bool infixr 4 Source

class Eq2 f => Ord2 f where Source

Minimal complete definition

Nothing

Methods

compare2 :: (Ord a, Ord b) => f a b -> f a b -> Ordering Source

Instances

(<##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool infixr 4 Source

(<=##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool infixr 4 Source

(>=##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool infixr 4 Source

(>##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool infixr 4 Source

max2 :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> f a b Source

min2 :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> f a b Source

class Show2 f where Source

Minimal complete definition

Nothing

Methods

showsPrec2 :: (Show a, Show b) => Int -> f a b -> ShowS Source

showList2 :: (Show a, Show b) => [f a b] -> ShowS Source

show2 :: (Show2 f, Show a, Show b) => f a b -> String Source

shows2 :: (Show2 f, Show a, Show b) => f a b -> ShowS Source

class Read2 f where Source

Minimal complete definition

Nothing

Methods

readsPrec2 :: (Read a, Read b) => Int -> ReadS (f a b) Source

readList2 :: (Read a, Read b) => ReadS [f a b] Source

read2 :: (Read2 f, Read a, Read b) => String -> f a b Source

reads2 :: (Read2 f, Read a, Read b) => ReadS (f a b) Source

readPrec2 :: (Read2 f, Read a, Read b) => ReadPrec (f a b) Source

readListPrec2 :: (Read2 f, Read a, Read b) => ReadPrec [f a b] Source

readList2Default :: (Read2 f, Read a, Read b) => ReadS [f a b] Source

newtype Lift2 f a b Source

Constructors

Lift2 

Fields

lower2 :: f a b
 

Instances

Read2 f => Read2 (Lift2 f) Source 
Show2 f => Show2 (Lift2 f) Source 
Ord2 f => Ord2 (Lift2 f) Source 
Eq2 f => Eq2 (Lift2 f) Source 
Functor (f a) => Functor (Lift2 f a) Source 
Foldable (f a) => Foldable (Lift2 f a) Source 
Traversable (f a) => Traversable (Lift2 f a) Source 
(Read2 f, Read a) => Read1 (Lift2 f a) Source 
(Show2 f, Show a) => Show1 (Lift2 f a) Source 
(Ord2 f, Ord a) => Ord1 (Lift2 f a) Source 
(Eq2 f, Eq a) => Eq1 (Lift2 f a) Source 
(Eq2 f, Eq a, Eq b) => Eq (Lift2 f a b) Source 
(Ord2 f, Ord a, Ord b) => Ord (Lift2 f a b) Source 
(Read2 f, Read a, Read b) => Read (Lift2 f a b) Source 
(Show2 f, Show a, Show b) => Show (Lift2 f a b) Source