Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 11, 2023
1 parent 1f76bef commit 3d09104
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions solutions/src/2023/11.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ module Main where

import Advent (getInputLines, counts)
import Advent.Coord (coordLines, Coord(C))
import Data.List (inits, tails)
import Data.Map (Map)
import Data.Map qualified as Map

Expand Down Expand Up @@ -68,7 +67,7 @@ solve1' ::
Int {- ^ current location -} ->
[(Int,Int)] {- ^ remaining locations and counts -} ->
Int {- ^ total distances traveled -}
solve1' ex _ _ acc _ [] = acc
solve1' _ _ _ acc _ [] = acc
solve1' ex l r acc here ((there,m):xs) =
solve1' ex (l+m) (r-m) (acc + crossings * distance) there xs
where
Expand Down

0 comments on commit 3d09104

Please sign in to comment.