-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A fast current unique identifier supply with a pure API -- -- A fast current unique identifier supply with a pure API @package concurrent-supply @version 0.1 -- | A globally unique fresh identifier supply with local pooling and -- replay support. module Control.Concurrent.Supply -- | A user managed globally unique variable supply. data Supply -- | Grab a new supply. Any two supplies obtained with newSupply are -- guaranteed to return disjoint sets of identifiers. Replaying the same -- sequence of operations on the same Supply will yield the same results. newSupply :: IO Supply -- | Obtain a fresh Id from a Supply. freshId :: Supply -> (Int, Supply) -- | Split a supply into two supplies that will return disjoint identifiers splitSupply :: Supply -> (Supply, Supply) -- | An unboxed version of freshId freshId# :: Supply -> (# Int#, Supply #) -- | An unboxed version of splitSupply splitSupply# :: Supply -> (# Supply, Supply #) instance Eq Supply instance Ord Supply instance Show Supply instance Hashable Supply instance Hashable Block instance Show Block instance Ord Block instance Eq Block instance Functor Stream