implemented editGoalieLtMinsPrompt

This commit is contained in:
Jonathan Lamothe 2019-11-14 02:21:39 -05:00
parent 52d412942a
commit 30cfea0503
2 changed files with 11 additions and 1 deletions

View File

@ -29,6 +29,7 @@ module Mtlstats.Actions.EditGoalie
, editGoalieYtdLosses
, editGoalieYtdTies
, editGoalieLtGames
, editGoalieLtMins
) where
import Control.Monad (void)
@ -110,6 +111,14 @@ editGoalieLtGames
-> ProgState
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 f mode s = fromMaybe s $ do
gid <- s^.progMode.editGoalieStateL.egsSelectedGoalie

View File

@ -92,4 +92,5 @@ editGoalieLtGamesPrompt = numPrompt "Lifetime games played: " $
-- | Prompt to edit a goalie's lifetime minutes played
editGoalieLtMinsPrompt :: Prompt
editGoalieLtMinsPrompt = undefined
editGoalieLtMinsPrompt = numPrompt "Lifetime minutes played: " $
modify . editGoalieLtMins