implemented editGoalieLtLossesPrompt
This commit is contained in:
parent
ac3b8e9522
commit
3ba3875752
|
@ -32,6 +32,7 @@ module Mtlstats.Actions.EditGoalie
|
||||||
, editGoalieLtMins
|
, editGoalieLtMins
|
||||||
, editGoalieLtGoals
|
, editGoalieLtGoals
|
||||||
, editGoalieLtWins
|
, editGoalieLtWins
|
||||||
|
, editGoalieLtLosses
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
|
@ -137,6 +138,14 @@ editGoalieLtWins
|
||||||
-> ProgState
|
-> ProgState
|
||||||
editGoalieLtWins wins = editGoalie (gLifetime.gsWins .~ wins) EGLifetime
|
editGoalieLtWins wins = editGoalie (gLifetime.gsWins .~ wins) EGLifetime
|
||||||
|
|
||||||
|
-- | Edits a goalie's lifetime losses
|
||||||
|
editGoalieLtLosses
|
||||||
|
:: Int
|
||||||
|
-- ^ The number of losses
|
||||||
|
-> ProgState
|
||||||
|
-> ProgState
|
||||||
|
editGoalieLtLosses = 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
|
||||||
|
|
|
@ -110,4 +110,5 @@ editGoalieLtWinsPrompt = numPrompt "Lifetime wins: " $
|
||||||
|
|
||||||
-- | Prompt to edit a goalie's lifetime losses
|
-- | Prompt to edit a goalie's lifetime losses
|
||||||
editGoalieLtLossesPrompt :: Prompt
|
editGoalieLtLossesPrompt :: Prompt
|
||||||
editGoalieLtLossesPrompt = undefined
|
editGoalieLtLossesPrompt = numPrompt "Lifetime losses: " $
|
||||||
|
modify . editGoalieLtLosses
|
||||||
|
|
Loading…
Reference in New Issue
Block a user