summaryrefslogtreecommitdiff
path: root/Day2.lean
diff options
context:
space:
mode:
Diffstat (limited to 'Day2.lean')
-rw-r--r--Day2.lean2
1 files changed, 1 insertions, 1 deletions
diff --git a/Day2.lean b/Day2.lean
index 7208a3d..7ed10aa 100644
--- a/Day2.lean
+++ b/Day2.lean
@@ -78,7 +78,7 @@ def part2 (games : List Game) : Nat :=
open DayPart
instance : Parse ⟨2, by simp⟩ (ι := List Game) where
- parse := parse
+ parse := (λ o ↦ match o with | some a => pure a | none => throw "Failed to parse input") ∘ parse
instance : Part ⟨2,_⟩ Parts.One (ι := List Game) (ρ := Nat) where
run := some ∘ part1