prompt for day of month game took place

This commit is contained in:
Jonathan Lamothe
2019-08-31 12:42:11 -04:00
parent bd0cffc56c
commit eef773b7fa
3 changed files with 10 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ module Mtlstats.Prompt (
numPrompt,
-- * Individual prompts
gameYearPrompt,
gameDayPrompt,
otherTeamPrompt,
homeScorePrompt,
awayScorePrompt
@@ -99,6 +100,11 @@ gameYearPrompt :: Prompt
gameYearPrompt = numPrompt "Game year: " $
modify . (progMode.gameStateL.gameYear ?~)
-- | Prompts for the day of the month the game took place
gameDayPrompt :: Prompt
gameDayPrompt = numPrompt "Day of month: " $
modify . (progMode.gameStateL.gameDay ?~)
-- | Prompts for the other team name
otherTeamPrompt :: Prompt
otherTeamPrompt = strPrompt "Other team: " $