-- 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.2.0 module Data.RoundRobin -- | A simple round-robin table useful for selecting resource using -- round-robin fashion. data RoundRobin a -- | create a round-robin table from list. -- -- If list is empty, an error will be raised. will use NonEmpty in -- future(ghc 8 are widely used). newRoundRobin :: NonEmpty a -> IO (RoundRobin a) -- | select an item from round-robin table. select :: RoundRobin a -> IO a -- | set a new round-robin table. set :: RoundRobin a -> NonEmpty a -> IO () instance GHC.Classes.Eq (Data.RoundRobin.RoundRobin a)