implemented editPlayerStateL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user