iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Queue

Documentation

data Queue a Source #

Constructors

Q [a] [a] 

Instances

Instances details
Functor Queue Source # 
Instance details

Defined in Data.Queue

Methods

fmap :: (a -> b) -> Queue a -> Queue b #

(<$) :: a -> Queue b -> Queue a #

IsList (Queue a) Source # 
Instance details

Defined in Data.Queue

Associated Types

type Item (Queue a) #

Methods

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

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

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

Show a => Show (Queue a) Source # 
Instance details

Defined in Data.Queue

Methods

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

show :: Queue a -> String #

showList :: [Queue a] -> ShowS #

Eq a => Eq (Queue a) Source # 
Instance details

Defined in Data.Queue

Methods

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

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

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

Defined in Data.Queue

Methods

compare :: Queue a -> Queue a -> Ordering #

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

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

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

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

max :: Queue a -> Queue a -> Queue a #

min :: Queue a -> Queue a -> Queue a #

type Item (Queue a) Source # 
Instance details

Defined in Data.Queue

type Item (Queue a) = a

headQ :: Queue a -> Maybe (a, Queue a) Source #

insertQ :: a -> Queue a -> Queue a Source #

snocQ :: Queue a -> a -> Queue a Source #

consQ :: a -> Queue a -> Queue a Source #

(|>) :: Queue a -> a -> Queue a Source #

(<|) :: a -> Queue a -> Queue a Source #