Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Foldable Heap | |
Defined in Data.Heap fold :: Monoid m => Heap m -> m # foldMap :: Monoid m => (a -> m) -> Heap a -> m # foldMap' :: Monoid m => (a -> m) -> Heap a -> m # foldr :: (a -> b -> b) -> b -> Heap a -> b # foldr' :: (a -> b -> b) -> b -> Heap a -> b # foldl :: (b -> a -> b) -> b -> Heap a -> b # foldl' :: (b -> a -> b) -> b -> Heap a -> b # foldr1 :: (a -> a -> a) -> Heap a -> a # foldl1 :: (a -> a -> a) -> Heap a -> a # elem :: Eq a => a -> Heap a -> Bool # maximum :: Ord a => Heap a -> a # | |
Heap Heap Source # | |
Defined in Data.Heap.Ekmett empty :: Ord a => Heap a Source # null :: Ord a => Heap a -> Bool Source # insert :: Ord a => a -> Heap a -> Heap a Source # merge :: Ord a => Heap a -> Heap a -> Heap a Source # findMin :: Ord a => Heap a -> Maybe a Source # deleteMin :: Ord a => Heap a -> Maybe (Heap a) Source # singleton :: Ord a => a -> Heap a Source # viewMin :: Ord a => Heap a -> Maybe (a, Heap a) Source # fromList :: Ord a => [a] -> Heap a Source # toList :: Ord a => Heap a -> [a] Source # span :: Ord a => (a -> Bool) -> Heap a -> (Heap a, Heap a) Source # | |
Eq (Heap a) | |
(Ord a, Data a) => Data (Heap a) | |
Defined in Data.Heap gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Heap a -> c (Heap a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Heap a) # toConstr :: Heap a -> Constr # dataTypeOf :: Heap a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Heap a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Heap a)) # gmapT :: (forall b. Data b => b -> b) -> Heap a -> Heap a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Heap a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Heap a -> r # gmapQ :: (forall d. Data d => d -> u) -> Heap a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Heap a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Heap a -> m (Heap a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Heap a -> m (Heap a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Heap a -> m (Heap a) # | |
Ord (Heap a) | |
(Ord a, Read a) => Read (Heap a) | |
Show a => Show (Heap a) | |
Semigroup (Heap a) | |
Monoid (Heap a) | |
module Data.Heap.Class
Orphan instances
Heap Heap Source # | |
empty :: Ord a => Heap a Source # null :: Ord a => Heap a -> Bool Source # insert :: Ord a => a -> Heap a -> Heap a Source # merge :: Ord a => Heap a -> Heap a -> Heap a Source # findMin :: Ord a => Heap a -> Maybe a Source # deleteMin :: Ord a => Heap a -> Maybe (Heap a) Source # singleton :: Ord a => a -> Heap a Source # viewMin :: Ord a => Heap a -> Maybe (a, Heap a) Source # fromList :: Ord a => [a] -> Heap a Source # toList :: Ord a => Heap a -> [a] Source # span :: Ord a => (a -> Bool) -> Heap a -> (Heap a, Heap a) Source # |