Skip to content

Commit bf71472

Browse files
Restyled by fourmolu (#454)
Co-authored-by: Restyled.io <[email protected]>
1 parent e660c2d commit bf71472

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Swarm/Game/Recipe.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ missingIngredientsFor (inv, ins) (Recipe inps _ reqs _ _) =
192192
knowsIngredientsFor :: (Inventory, Inventory) -> Recipe Entity -> Bool
193193
knowsIngredientsFor (inv, ins) recipe =
194194
knowsAll inv (recipe ^. recipeInputs) && knowsAll ins (recipe ^. recipeRequirements)
195-
where
196-
knowsAll xs = all (E.contains xs . snd)
195+
where
196+
knowsAll xs = all (E.contains xs . snd)
197197

198198
-- | Try to make a recipe, deleting the recipe's inputs from the
199199
-- inventory. Return either a description of which items are

src/Swarm/Game/Step.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ execConst c vs s k = do
13711371
[VBool b] -> return $ Out (VBool (not b)) s k
13721372
_ -> badConst
13731373
Neg -> case vs of
1374-
[VInt n] -> return $ Out (VInt (-n)) s k
1374+
[VInt n] -> return $ Out (VInt (- n)) s k
13751375
_ -> badConst
13761376
Eq -> returnEvalCmp
13771377
Neq -> returnEvalCmp

0 commit comments

Comments
 (0)