implemented editGoalieYtdMinsPrompt
This commit is contained in:
parent
1b9c072a76
commit
0961f14c5f
|
@ -23,6 +23,7 @@ module Mtlstats.Actions.EditGoalie
|
||||||
( editGoalieNumber
|
( editGoalieNumber
|
||||||
, editGoalieName
|
, editGoalieName
|
||||||
, editGoalieYtdGames
|
, editGoalieYtdGames
|
||||||
|
, editGoalieYtdMins
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
|
@ -56,6 +57,14 @@ editGoalieYtdGames
|
||||||
-> ProgState
|
-> ProgState
|
||||||
editGoalieYtdGames games = editGoalie (gYtd.gsGames .~ games) EGYtd
|
editGoalieYtdGames games = editGoalie (gYtd.gsGames .~ games) EGYtd
|
||||||
|
|
||||||
|
-- | Edits a goalie's YTD minutes
|
||||||
|
editGoalieYtdMins
|
||||||
|
:: Int
|
||||||
|
-- ^ The number of minutes played
|
||||||
|
-> ProgState
|
||||||
|
-> ProgState
|
||||||
|
editGoalieYtdMins = 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
|
||||||
|
|
|
@ -56,4 +56,5 @@ editGoalieYtdGamesPrompt = numPrompt "Year-to-date games played: " $
|
||||||
|
|
||||||
-- | Prompt to edit a goalie's YTD minutes played
|
-- | Prompt to edit a goalie's YTD minutes played
|
||||||
editGoalieYtdMinsPrompt :: Prompt
|
editGoalieYtdMinsPrompt :: Prompt
|
||||||
editGoalieYtdMinsPrompt = undefined
|
editGoalieYtdMinsPrompt = numPrompt "Year-to-date minutes played: " $
|
||||||
|
modify . editGoalieYtdMins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user