journeyman-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Tourney.UI.Selection

Synopsis

Documentation

data Selection Source #

Instances

Instances details
Show Selection Source # 
Instance details

Defined in Tourney.UI.Selection

new :: MapByRound (MapByMatches (Maybe Result)) -> Selection Source #

Create a selection zipper from the round/match matrix.

merge :: MapByRound (MapByMatches (Maybe Result)) -> Selection -> Selection Source #

Merge the selection with the current round/match matrix. Useful for when that gets updated

moveRight :: Selection -> Selection Source #

Move the selection one position to the right

moveLeft :: Selection -> Selection Source #

Move the selection one position to the left

current :: Selection -> Maybe (RoundNo, Match) Source #

Get the current selected round/match