allow player creation callbacks to be impure

This commit is contained in:
Jonathan Lamothe
2019-09-19 04:01:28 -04:00
parent 8277f8bac7
commit 11a66cfd33
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -217,9 +217,9 @@ data CreatePlayerState = CreatePlayerState
-- ^ The player's name
, _cpsPosition :: String
-- ^ The player's position
, _cpsSuccessCallback :: ProgState -> ProgState
, _cpsSuccessCallback :: Action ()
-- ^ The function to call on success
, _cpsFailureCallback :: ProgState -> ProgState
, _cpsFailureCallback :: Action ()
-- ^ The function to call on failure
}
@@ -495,8 +495,8 @@ newCreatePlayerState = CreatePlayerState
{ _cpsNumber = Nothing
, _cpsName = ""
, _cpsPosition = ""
, _cpsSuccessCallback = id
, _cpsFailureCallback = id
, _cpsSuccessCallback = return ()
, _cpsFailureCallback = return ()
}
-- | Constructor for a 'Database'