prompt for other team

This commit is contained in:
Jonathan Lamothe
2019-08-25 10:04:37 -04:00
parent 0f9f76ce4e
commit 9ba91f1f01
3 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ module Mtlstats.Prompt (
strPrompt,
numPrompt,
-- * Individual prompts
otherTeamPrompt,
homeScorePrompt,
awayScorePrompt
) where
@@ -92,6 +93,10 @@ numPrompt pStr act = Prompt
, promptFunctionKey = const $ return ()
}
otherTeamPrompt :: Prompt
otherTeamPrompt = strPrompt "Other team: " $
modify . (progMode . otherTeamL .~)
homeScorePrompt :: Prompt
homeScorePrompt = numPrompt "Home score: " $
modify . (progMode . homeScoreL ?~)