Fix aoc2024 build
- Holes are no longer allowed when building executables - Stack overflow in mapMaybe (Day15)
This commit is contained in:
@@ -72,10 +72,7 @@ calcCheats start dists fuel threshold = go (toList start) 0
|
||||
-- only '.' have dist
|
||||
tryCand : Int → Point → Point → Int
|
||||
tryCand l pt cand = case lookupMap cand dists of
|
||||
Just (_, dist) =>
|
||||
let d = manh pt cand in
|
||||
if fuel < d then (let x = (trace "X" (pt, cand, d)) in ?) else
|
||||
if l + manh pt cand + dist <= threshold then 1 else 0
|
||||
Just (_, dist) => if l + manh pt cand + dist <= threshold then 1 else 0
|
||||
Nothing => 0
|
||||
|
||||
go : List (Point × Int) → Int → Int
|
||||
|
||||
Reference in New Issue
Block a user