implemented createGoalieStateL
This commit is contained in:
@@ -47,6 +47,7 @@ module Mtlstats.Types (
|
||||
-- ** ProgMode Lenses
|
||||
gameStateL,
|
||||
createPlayerStateL,
|
||||
createGoalieStateL,
|
||||
-- ** GameState Lenses
|
||||
gameYear,
|
||||
gameMonth,
|
||||
@@ -524,6 +525,13 @@ createPlayerStateL = lens
|
||||
_ -> newCreatePlayerState)
|
||||
(\_ cps -> CreatePlayer cps)
|
||||
|
||||
createGoalieStateL :: Lens' ProgMode CreateGoalieState
|
||||
createGoalieStateL = lens
|
||||
(\case
|
||||
CreateGoalie cgs -> cgs
|
||||
_ -> newCreateGoalieState)
|
||||
(\_ cgs -> CreateGoalie cgs)
|
||||
|
||||
-- | Constructor for a 'ProgState'
|
||||
newProgState :: ProgState
|
||||
newProgState = ProgState
|
||||
|
||||
Reference in New Issue
Block a user