coda-0.0.1: The coda compiler

Copyright(c) Edward Kmett 2017
LicenseBSD2
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Coda.Relative.Queue

Description

Okasaki real-time queue modified for O(1) rel

Documentation

data Queue a Source #

Instances

Relative a => IsList (Queue a) Source # 

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)] #

(Eq a, Relative a) => Eq (Queue a) Source # 

Methods

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

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

(Ord a, Relative a) => Ord (Queue a) Source # 

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 #

(Read a, Relative a) => Read (Queue a) Source # 
(Show a, Relative a) => Show (Queue a) Source # 

Methods

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

show :: Queue a -> String #

showList :: [Queue a] -> ShowS #

AsEmpty (Queue a) Source # 

Methods

_Empty :: Prism' (Queue a) ()

Default (Queue a) Source # 

Methods

def :: Queue a

Relative (Queue a) Source # 

Methods

rel :: Delta -> Queue a -> Queue a Source #

(Relative a, Relative b) => Cons (Queue a) (Queue b) a b Source # 

Methods

_Cons :: Prism (Queue a) (Queue b) (a, Queue a) (b, Queue b)

type Item (Queue a) Source # 
type Item (Queue a) = a

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