implemented createPlayerStateL
This commit is contained in:
@@ -44,6 +44,7 @@ module Mtlstats.Types (
|
||||
inputBuffer,
|
||||
-- ** ProgMode Lenses
|
||||
gameStateL,
|
||||
createPlayerStateL,
|
||||
-- ** GameState Lenses
|
||||
gameYear,
|
||||
gameMonth,
|
||||
@@ -443,6 +444,13 @@ gameStateL = lens
|
||||
_ -> newGameState)
|
||||
(\_ gs -> NewGame gs)
|
||||
|
||||
createPlayerStateL :: Lens' ProgMode CreatePlayerState
|
||||
createPlayerStateL = lens
|
||||
(\case
|
||||
CreatePlayer cps -> cps
|
||||
_ -> newCreatePlayerState)
|
||||
(\_ cps -> CreatePlayer cps)
|
||||
|
||||
-- | Constructor for a 'ProgState'
|
||||
newProgState :: ProgState
|
||||
newProgState = ProgState
|
||||
|
||||
Reference in New Issue
Block a user