implemented editPlayerStateL

This commit is contained in:
Jonathan Lamothe
2019-11-01 03:42:51 -04:00
parent e754d887c5
commit 8b1e93386a
2 changed files with 33 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ module Mtlstats.Types (
gameStateL,
createPlayerStateL,
createGoalieStateL,
editPlayerStateL,
-- ** GameState Lenses
gameYear,
gameMonth,
@@ -584,6 +585,13 @@ createGoalieStateL = lens
_ -> newCreateGoalieState)
(\_ cgs -> CreateGoalie cgs)
editPlayerStateL :: Lens' ProgMode EditPlayerState
editPlayerStateL = lens
(\case
EditPlayer eps -> eps
_ -> newEditPlayerState)
(\_ eps -> EditPlayer eps)
-- | Constructor for a 'ProgState'
newProgState :: ProgState
newProgState = ProgState