queuelike-1.0.9: A library of queuelike data structures, both functional and stateful.
Data.MQueue.Class
class Monad m => MQueue q m whereSource
Associated Types
type MQueueKey q :: *Source
Methods
newQueue :: m qSource
push :: q -> MQueueKey q -> m ()Source
pushAll :: q -> [MQueueKey q] -> m ()Source
pop :: q -> m (Maybe (MQueueKey q))Source
pop_ :: q -> m ()Source
peek :: q -> m (Maybe (MQueueKey q))Source
isEmpty :: q -> m BoolSource
Instances