diff --git a/haskell/Main.hs b/haskell/Main.hs index 80a6c42..73b44a8 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -9,6 +9,7 @@ import Puzzles.Day2 qualified as Day2 import Puzzles.Day3 qualified as Day3 import Puzzles.Day4 qualified as Day4 import Puzzles.Day5 qualified as Day5 +import Puzzles.Day6 qualified as Day6 import Test.Tasty.Ingredients.ConsoleReporter main :: IO () @@ -23,6 +24,7 @@ main = , Day3.puzzle , Day4.puzzle , Day5.puzzle + , Day6.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day6.hs b/haskell/Puzzles/Day6.hs new file mode 100644 index 0000000..599d617 --- /dev/null +++ b/haskell/Puzzles/Day6.hs @@ -0,0 +1,15 @@ +module Puzzles.Day6 (puzzle) where + +import Pre + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 6 + , parser = pure () + , parts = + [ \() -> + "TODO" + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index 67722d0..ee2e545 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -15,6 +15,7 @@ executable aoc Puzzles.Day3 Puzzles.Day4 Puzzles.Day5 + Puzzles.Day6 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/6 b/inputs/examples/6 new file mode 100644 index 0000000..2465b9e --- /dev/null +++ b/inputs/examples/6 @@ -0,0 +1,4 @@ +123 328 51 64 + 45 64 387 23 + 6 98 215 314 +* + * + diff --git a/inputs/private b/inputs/private index 2f75167..7e458d7 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit 2f751675d92355e0071ef201a4ec9496278da274 +Subproject commit 7e458d7cc565d7b40ecab967357561f6c8de5ab3 diff --git a/outputs/examples/6/1 b/outputs/examples/6/1 new file mode 100644 index 0000000..59e8b6f --- /dev/null +++ b/outputs/examples/6/1 @@ -0,0 +1 @@ +4277556 \ No newline at end of file