implemented editGoalieYtdGamesPrompt
This commit is contained in:
parent
06348fe928
commit
f739db4203
|
@ -22,6 +22,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
module Mtlstats.Actions.EditGoalie
|
module Mtlstats.Actions.EditGoalie
|
||||||
( editGoalieNumber
|
( editGoalieNumber
|
||||||
, editGoalieName
|
, editGoalieName
|
||||||
|
, editGoalieYtdGames
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad (void)
|
import Control.Monad (void)
|
||||||
|
@ -47,6 +48,14 @@ editGoalieName
|
||||||
-> ProgState
|
-> ProgState
|
||||||
editGoalieName name = editGoalie (gName .~ name) EGMenu
|
editGoalieName name = editGoalie (gName .~ name) EGMenu
|
||||||
|
|
||||||
|
-- | Edits a goalie's YTD games
|
||||||
|
editGoalieYtdGames
|
||||||
|
:: Int
|
||||||
|
-- ^ The number of games played
|
||||||
|
-> ProgState
|
||||||
|
-> ProgState
|
||||||
|
editGoalieYtdGames = 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
|
||||||
|
|
|
@ -50,4 +50,5 @@ editGoalieNamePrompt = strPrompt "Goalie name: " $
|
||||||
|
|
||||||
-- | Prompt to edit a goalie's YTD games played
|
-- | Prompt to edit a goalie's YTD games played
|
||||||
editGoalieYtdGamesPrompt :: Prompt
|
editGoalieYtdGamesPrompt :: Prompt
|
||||||
editGoalieYtdGamesPrompt = undefined
|
editGoalieYtdGamesPrompt = numPrompt "Year-to-date games played: " $
|
||||||
|
modify . editGoalieYtdGames
|
||||||
|
|
Loading…
Reference in New Issue
Block a user