basic prompting framework

This commit is contained in:
Jonathan Lamothe
2019-08-24 16:23:56 -04:00
parent 7e93b329b2
commit 3cc76d881c
3 changed files with 98 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ module Mtlstats.Actions
( startNewSeason
, resetYtd
, startNewGame
, addChar
, removeChar
) where
import Lens.Micro (over, (&), (.~), (?~), (%~))
@@ -44,3 +46,11 @@ startNewGame :: ProgState -> ProgState
startNewGame
= (progMode .~ NewGame newGameState)
. (database . dbGames %~ succ)
-- | Adds a character to the input buffer
addChar :: Char -> ProgState -> ProgState
addChar = undefined
-- | Removes a character from the input buffer (if possible)
removeChar :: ProgState -> ProgState
removeChar = undefined