Fix aoc2024 build

- Holes are no longer allowed when building executables
- Stack overflow in mapMaybe (Day15)
This commit is contained in:
2025-04-10 08:50:52 -04:00
parent 0ce1a5e454
commit d6156ebc79
8 changed files with 16 additions and 17 deletions

View File

@@ -72,7 +72,7 @@ step mach@(M a b c mem ip out) =
5 => let o = combo op % itobi 8 in step (M a b c mem (ip + 2) (out :< bitoi o))
6 => let b = a >>> combo op in step (M a b c mem (ip + 2) out)
7 => let c = a >>> combo op in step (M a b c mem (ip + 2) out)
_ => ?
_ => mach
where
combo : Int BigInt
combo 4 = a