-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A simple round-robin data type -- -- This package provide a simple data type wrap a round-robin table. so -- you can select resources(host, connection...) using round-robin -- fashion. @package roundRobin @version 0.1.0.0 module Data.RoundRobin -- | A simple round-robin table useful for selecting resource using -- round-robin fashion. newtype RoundRobin a RoundRobin :: (IORef [a]) -> RoundRobin a -- | create a round-robin table from list. -- -- If list is empty, an error will be raised. newRoundRobin :: [a] -> IO (RoundRobin a) -- | select an item from round-robin table. select :: RoundRobin a -> IO a instance GHC.Classes.Eq (Data.RoundRobin.RoundRobin a)