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

@@ -78,7 +78,7 @@ pathCost from to kp =
case lookupMap (from, to) kp.costs of
Just (_, cost) => (kp, cost)
Nothing =>
let (path :: paths) = getPaths kp.interdit from to | _ => ? in
let (path :: paths) = getPaths kp.interdit from to | _ => fatalError "empty path list" in
case kp of
(KP n s i c Nothing) => (kp, 1)
(KP n s i c (Just kp')) =>