moved editStandings to Mtlstats.Actions.EditStandings module

This commit is contained in:
Jonathan Lamothe
2020-01-16 00:03:31 -05:00
parent 6a0d1f7203
commit 264d9f81e2
5 changed files with 54 additions and 16 deletions

View File

@@ -36,7 +36,6 @@ module Mtlstats.Actions
, editSelectedPlayer
, editGoalie
, editSelectedGoalie
, editStandings
, addPlayer
, addGoalie
, resetCreatePlayerState
@@ -158,10 +157,6 @@ editSelectedGoalie f s = fromMaybe s $ do
goalies' = modifyNth n f goalies
Just $ s & database.dbGoalies .~ goalies'
-- | Enters edit standings mode
editStandings :: ProgState -> ProgState
editStandings = progMode .~ EditStandings
-- | Adds the entered player to the roster
addPlayer :: ProgState -> ProgState
addPlayer s = fromMaybe s $ do

View File

@@ -20,12 +20,19 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
-}
module Mtlstats.Actions.EditStandings
( editHomeStandings
( editStandings
, editHomeStandings
, editRoadStandings
) where
import Lens.Micro ((.~))
import Mtlstats.Types
-- | Enters edit standings mode
editStandings :: ProgState -> ProgState
editStandings = progMode .~ EditStandings
-- | Edits the home standings
editHomeStandings :: ProgState -> ProgState
editHomeStandings = undefined

View File

@@ -44,6 +44,7 @@ import qualified UI.NCurses as C
import Mtlstats.Actions
import qualified Mtlstats.Actions.NewGame.GoalieInput as GI
import Mtlstats.Actions.EditStandings
import Mtlstats.Config
import Mtlstats.Types
import Mtlstats.Types.Menu