Skip to content

Commit

Permalink
unused extension
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 8, 2024
1 parent 9155d5e commit f7328a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solutions/src/2024/08.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# Language QuasiQuotes, ImportQualifiedPost #-}
{-# Language ImportQualifiedPost #-}
{-|
Module : Main
Description : Day 8 solution
Expand Down Expand Up @@ -63,8 +63,8 @@ main =
-- that fit inside a bounding box predicate.
nodeLine :: (Coord -> Bool) -> Coord -> Coord -> [Coord]
nodeLine p a b =
takeWhile p (iterate (step +) a) ++
takeWhile p (iterate (subtract step) (a - step))
takeWhile p (iterate (step +) a) ++
takeWhile p (iterate (subtract step) (a - step))
where
C dy dx = a - b
com | dx == 0 || dy == 0 = 1
Expand Down

0 comments on commit f7328a1

Please sign in to comment.