implemented editGoalieLtMinsPrompt
This commit is contained in:
parent
52d412942a
commit
30cfea0503
|
@ -29,6 +29,7 @@ module Mtlstats.Actions.EditGoalie
|
||||||
, editGoalieYtdLosses
|
, editGoalieYtdLosses
|
||||||
, editGoalieYtdTies
|
, editGoalieYtdTies
|
||||||
, editGoalieLtGames
|
, editGoalieLtGames
|
||||||
|
, editGoalieLtMins
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
|
@ -110,6 +111,14 @@ editGoalieLtGames
|
||||||
-> ProgState
|
-> ProgState
|
||||||
editGoalieLtGames games = editGoalie (gLifetime.gsGames .~ games) EGLifetime
|
editGoalieLtGames games = editGoalie (gLifetime.gsGames .~ games) EGLifetime
|
||||||
|
|
||||||
|
-- | Edits a goalie's lifetime minutes played
|
||||||
|
editGoalieLtMins
|
||||||
|
:: Int
|
||||||
|
-- ^ The number of minutes
|
||||||
|
-> ProgState
|
||||||
|
-> ProgState
|
||||||
|
editGoalieLtMins = 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
|
||||||
|
|
|
@ -92,4 +92,5 @@ editGoalieLtGamesPrompt = numPrompt "Lifetime games played: " $
|
||||||
|
|
||||||
-- | Prompt to edit a goalie's lifetime minutes played
|
-- | Prompt to edit a goalie's lifetime minutes played
|
||||||
editGoalieLtMinsPrompt :: Prompt
|
editGoalieLtMinsPrompt :: Prompt
|
||||||
editGoalieLtMinsPrompt = undefined
|
editGoalieLtMinsPrompt = numPrompt "Lifetime minutes played: " $
|
||||||
|
modify . editGoalieLtMins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user