Skip to content

Commit

Permalink
Fix lean4 v4.14.0 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed Nov 18, 2024
1 parent 3db9482 commit 734bede
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lean/ECS/Components.lean
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ It can also be used as:
to delete every `a` component.
--/
inductive Not (α : Type) :=
inductive Not (α : Type) where
| Not


Expand Down
2 changes: 1 addition & 1 deletion lean/Examples/BouncingBall.lean
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ structure Config where
velocity : Vector2
deriving Inhabited

inductive Circle :=
inductive Circle where
| Circle

-- Brings `World` and `initWorld` into scope
Expand Down
2 changes: 1 addition & 1 deletion lean/Examples/JessicaCantSwim.lean
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main : IO Unit := do
let keys ← getKeys
let emits := game.emit
let events: List Types.Msg := List.map (λ key => Types.Msg.Key key) keys
game := game.step delta (List.join [events, emits])
game := game.step delta (List.flatten [events, emits])
let drawings := game.view
let ⟨ ⟨ ox, oy ⟩, ⟨ tx, ty ⟩, r, z ⟩ := game.camera
renderFrame do
Expand Down
4 changes: 2 additions & 2 deletions lean/Examples/JessicaCantSwim/Game.lean
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private def Game.update (game: Game) (msg: Types.Msg): Game :=
}

def Game.view (game: Game): List Draw.Draw :=
List.join [
List.flatten [
-- Add your new Model here:
game.wetsand.view,
game.shells.view,
Expand All @@ -55,7 +55,7 @@ def Game.view (game: Game): List Draw.Draw :=
]

def Game.emit (game: Game): List Types.Msg :=
List.join [
List.flatten [
-- Add your new Model here:
game.ocean.emit,
game.wetsand.emit,
Expand Down

0 comments on commit 734bede

Please sign in to comment.