distributed-process-extras-0.3.2: Cloud Haskell Extras

Safe HaskellSafe
LanguageHaskell98

Control.Distributed.Process.Extras.Internal.Queue.PriorityQ

Documentation

newtype PriorityQ k a Source #

Constructors

PriorityQ 

Fields

empty :: Ord k => PriorityQ k v Source #

isEmpty :: Ord k => PriorityQ k v -> Bool Source #

singleton :: Ord k => k -> a -> PriorityQ k a Source #

enqueue :: Ord k => k -> v -> PriorityQ k v -> PriorityQ k v Source #

dequeue :: Ord k => PriorityQ k v -> Maybe (v, PriorityQ k v) Source #

peek :: Ord k => PriorityQ k v -> Maybe v Source #