added player edit control flow branch

This commit is contained in:
Jonathan Lamothe
2019-10-31 04:14:52 -04:00
parent 6ec7566b2c
commit 43c2f6191d
3 changed files with 35 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ module Mtlstats.Types (
GameType (..),
CreatePlayerState (..),
CreateGoalieState (..),
EditPlayerState (..),
Database (..),
Player (..),
PlayerStats (..),
@@ -208,6 +209,7 @@ data ProgMode
| NewGame GameState
| CreatePlayer CreatePlayerState
| CreateGoalie CreateGoalieState
| EditPlayer EditPlayerState
instance Show ProgMode where
show MainMenu = "MainMenu"
@@ -298,6 +300,9 @@ data CreateGoalieState = CreateGoalieState
-- ^ The function to call on failure
}
-- | Player edit status
data EditPlayerState = EditPlayerState
-- | Represents the database
data Database = Database
{ _dbPlayers :: [Player]