implemented Mtlstats.Control.EditGoalie.numberC

This commit is contained in:
Jonathan Lamothe 2019-11-12 23:51:49 -05:00
parent c24016210c
commit 75abf0ade8
2 changed files with 9 additions and 2 deletions

View File

@ -67,7 +67,7 @@ menuC :: Controller
menuC = menuControllerWith header editGoalieMenu
numberC :: Controller
numberC = undefined
numberC = promptController editGoalieNumberPrompt
nameC :: Controller
nameC = undefined

View File

@ -19,7 +19,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
-}
module Mtlstats.Prompt.EditGoalie (goalieToEditPrompt) where
module Mtlstats.Prompt.EditGoalie
( goalieToEditPrompt
, editGoalieNumberPrompt
) where
import Control.Monad.Trans.State (modify)
import Lens.Micro ((.~))
@ -31,3 +34,7 @@ import Mtlstats.Types
goalieToEditPrompt :: Prompt
goalieToEditPrompt = selectGoaliePrompt "Goalie to edit: " $
modify . (progMode.editGoalieStateL.egsSelectedGoalie .~)
-- | Prompt to edit a goalie's number
editGoalieNumberPrompt :: Prompt
editGoalieNumberPrompt = undefined