iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Heap.PairingHeap.Min

Documentation

data MinHeap a Source #

Constructors

MinFork !a [MinHeap a] 
MinEmpty 

Instances

Instances details
Ord a => Monoid (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Methods

mempty :: MinHeap a #

mappend :: MinHeap a -> MinHeap a -> MinHeap a #

mconcat :: [MinHeap a] -> MinHeap a #

Ord a => Semigroup (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Methods

(<>) :: MinHeap a -> MinHeap a -> MinHeap a #

sconcat :: NonEmpty (MinHeap a) -> MinHeap a #

stimes :: Integral b => b -> MinHeap a -> MinHeap a #

Ord a => IsList (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Associated Types

type Item (MinHeap a) #

Methods

fromList :: [Item (MinHeap a)] -> MinHeap a #

fromListN :: Int -> [Item (MinHeap a)] -> MinHeap a #

toList :: MinHeap a -> [Item (MinHeap a)] #

(Show a, Ord a) => Show (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Methods

showsPrec :: Int -> MinHeap a -> ShowS #

show :: MinHeap a -> String #

showList :: [MinHeap a] -> ShowS #

Ord a => Eq (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Methods

(==) :: MinHeap a -> MinHeap a -> Bool #

(/=) :: MinHeap a -> MinHeap a -> Bool #

Ord a => Ord (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

Methods

compare :: MinHeap a -> MinHeap a -> Ordering #

(<) :: MinHeap a -> MinHeap a -> Bool #

(<=) :: MinHeap a -> MinHeap a -> Bool #

(>) :: MinHeap a -> MinHeap a -> Bool #

(>=) :: MinHeap a -> MinHeap a -> Bool #

max :: MinHeap a -> MinHeap a -> MinHeap a #

min :: MinHeap a -> MinHeap a -> MinHeap a #

type Item (MinHeap a) Source # 
Instance details

Defined in Data.Heap.PairingHeap.Min

type Item (MinHeap a) = a

insertMinPH :: Ord a => a -> MinHeap a -> MinHeap a Source #