Safe Haskell | None |
---|---|

Language | Haskell2010 |

- data PlayerSet a
- data PlayerSetError a
- = InvalidNumPlayers Int
- | DuplicatePlayers [a]

- toPlayerSet :: Ord a => [a] -> Either (PlayerSetError a) (PlayerSet a)
- toPlayers :: PlayerSet a -> [a]
- randomize :: MonadRandom m => PlayerSet a -> m (PlayerSet a)
- rotate :: PlayerSet a -> PlayerSet a

# Documentation

data PlayerSetError a Source

Eq a => Eq (PlayerSetError a) Source | |

Show a => Show (PlayerSetError a) Source |

toPlayerSet :: Ord a => [a] -> Either (PlayerSetError a) (PlayerSet a) Source

randomize :: MonadRandom m => PlayerSet a -> m (PlayerSet a) Source

Randomize the order of the PlayerSet

Since 0.3