Skip to content

Commit 1118639

Browse files
Restyled by fourmolu (#443)
Co-authored-by: Restyled.io <[email protected]>
1 parent beb7ddb commit 1118639

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Swarm/Game/Step.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ execConst c vs s k = do
13601360
[VBool b] -> return $ Out (VBool (not b)) s k
13611361
_ -> badConst
13621362
Neg -> case vs of
1363-
[VInt n] -> return $ Out (VInt (-n)) s k
1363+
[VInt n] -> return $ Out (VInt (- n)) s k
13641364
_ -> badConst
13651365
Eq -> returnEvalCmp
13661366
Neq -> returnEvalCmp

src/Swarm/TUI/Controller.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ setFocus s name = continue $ s & uiState . uiFocusRing %~ focusSetCurrent name
225225
-- | Set the game to Running if it was auto paused
226226
maybeUnpause :: AppState -> AppState -> AppState
227227
maybeUnpause s
228-
| s ^. gameState . runStatus == AutoPause = gameState . runStatus .~ Running
229-
| otherwise = id
228+
| s ^. gameState . runStatus == AutoPause = gameState . runStatus .~ Running
229+
| otherwise = id
230230

231231
toggleModal :: AppState -> ModalType -> EventM Name AppState
232232
toggleModal s mt = do

0 commit comments

Comments
 (0)