http2-3.0.2: HTTP/2 library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.HTTP2.Priority.Internal

Synopsis

Documentation

type Key = Int Source #

type Weight = Int Source #

type Deficit = Word Source #

data Precedence Source #

Internal representation of priority in priority queues. The precedence of a dequeued entry should be specified to enqueue when the entry is enqueued again.

Constructors

Precedence 

Instances

Instances details
Eq Precedence Source # 
Instance details

Defined in Network.HTTP2.Priority.PSQ

Methods

(==) :: Precedence -> Precedence -> Bool

(/=) :: Precedence -> Precedence -> Bool

Ord Precedence Source # 
Instance details

Defined in Network.HTTP2.Priority.PSQ

Show Precedence Source # 
Instance details

Defined in Network.HTTP2.Priority.PSQ

Methods

showsPrec :: Int -> Precedence -> ShowS

show :: Precedence -> String

showList :: [Precedence] -> ShowS

data PriorityQueue a Source #

Constructors

PriorityQueue 

Fields

type Heap a = IntPSQ Precedence a Source #

delete :: Key -> PriorityQueue a -> (Maybe a, PriorityQueue a) Source #