control-monad-queue-0.0.9: Resuable corecursive queues, via continuations.

Control.Monad.Queue.Class

Description

class Monad q => MonadQueue e q | q -> e whereSource

Methods

enQ :: e -> q ()Source

peekQ :: q (Maybe e)Source

peekQs :: Integral maxlen => maxlen -> q [e]Source

peekQn :: Integral index => index -> q (Maybe e)Source

deQ :: q (Maybe e)Source

deQs :: Integral maxlen => maxlen -> q [e]Source

lenQ :: Integral len => q lenSource

Instances