implemented editGoalieLtWinsPrompt
This commit is contained in:
parent
13acbbdf35
commit
dd34429f59
|
@ -31,6 +31,7 @@ module Mtlstats.Actions.EditGoalie
|
||||||
, editGoalieLtGames
|
, editGoalieLtGames
|
||||||
, editGoalieLtMins
|
, editGoalieLtMins
|
||||||
, editGoalieLtGoals
|
, editGoalieLtGoals
|
||||||
|
, editGoalieLtWins
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
|
@ -128,6 +129,14 @@ editGoalieLtGoals
|
||||||
-> ProgState
|
-> ProgState
|
||||||
editGoalieLtGoals goals = editGoalie (gLifetime.gsGoalsAllowed .~ goals) EGLifetime
|
editGoalieLtGoals goals = editGoalie (gLifetime.gsGoalsAllowed .~ goals) EGLifetime
|
||||||
|
|
||||||
|
-- | Edits a goalie's lifetime wins
|
||||||
|
editGoalieLtWins
|
||||||
|
:: Int
|
||||||
|
-- ^ The number of wins
|
||||||
|
-> ProgState
|
||||||
|
-> ProgState
|
||||||
|
editGoalieLtWins = undefined
|
||||||
|
|
||||||
editGoalie :: (Goalie -> Goalie) -> EditGoalieMode -> ProgState -> ProgState
|
editGoalie :: (Goalie -> Goalie) -> EditGoalieMode -> ProgState -> ProgState
|
||||||
editGoalie f mode s = fromMaybe s $ do
|
editGoalie f mode s = fromMaybe s $ do
|
||||||
gid <- s^.progMode.editGoalieStateL.egsSelectedGoalie
|
gid <- s^.progMode.editGoalieStateL.egsSelectedGoalie
|
||||||
|
|
|
@ -104,4 +104,5 @@ editGoalieLtGoalsPrompt = numPrompt "Lifetime goals allowed: " $
|
||||||
|
|
||||||
-- | Prompt to edit a goalie's lifetime wins
|
-- | Prompt to edit a goalie's lifetime wins
|
||||||
editGoalieLtWinsPrompt :: Prompt
|
editGoalieLtWinsPrompt :: Prompt
|
||||||
editGoalieLtWinsPrompt = undefined
|
editGoalieLtWinsPrompt = numPrompt "Lifetime wins: " $
|
||||||
|
modify . editGoalieLtWins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user