prompt for game year
This commit is contained in:
@@ -26,6 +26,7 @@ module Mtlstats.Prompt (
|
||||
strPrompt,
|
||||
numPrompt,
|
||||
-- * Individual prompts
|
||||
gameYearPrompt,
|
||||
otherTeamPrompt,
|
||||
homeScorePrompt,
|
||||
awayScorePrompt
|
||||
@@ -93,6 +94,11 @@ numPrompt pStr act = Prompt
|
||||
, promptFunctionKey = const $ return ()
|
||||
}
|
||||
|
||||
-- | Prompts for the game year
|
||||
gameYearPrompt :: Prompt
|
||||
gameYearPrompt = numPrompt "Game year: " $
|
||||
modify . (progMode.gameStateL.gameYear ?~)
|
||||
|
||||
-- | Prompts for the other team name
|
||||
otherTeamPrompt :: Prompt
|
||||
otherTeamPrompt = strPrompt "Other team: " $
|
||||
|
||||
Reference in New Issue
Block a user