diff --git a/haskell/Main.hs b/haskell/Main.hs index 42813e0..c9ef696 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -11,6 +11,7 @@ import Puzzles.Day1 qualified as Day1 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 Test.Tasty import Test.Tasty.Golden (goldenVsString) import Test.Tasty.Ingredients.ConsoleReporter @@ -27,6 +28,7 @@ main = , Day2.puzzle , Day3.puzzle , Day4.puzzle + , Day5.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day5.hs b/haskell/Puzzles/Day5.hs new file mode 100644 index 0000000..bfa8e0e --- /dev/null +++ b/haskell/Puzzles/Day5.hs @@ -0,0 +1,15 @@ +module Puzzles.Day5 (puzzle) where + +import Puzzle + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 5 + , parser = pure () + , parts = + [ \() -> + "TODO" + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index 1c6d519..5b835df 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -14,6 +14,7 @@ executable aoc Puzzles.Day2 Puzzles.Day3 Puzzles.Day4 + Puzzles.Day5 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/5 b/inputs/examples/5 new file mode 100644 index 0000000..2e9078d --- /dev/null +++ b/inputs/examples/5 @@ -0,0 +1,11 @@ +3-5 +10-14 +16-20 +12-18 + +1 +5 +8 +11 +17 +32 diff --git a/inputs/private b/inputs/private index 7d234e9..2f75167 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit 7d234e9ef9f6a1ea8b263e2a2e9b936eba1fcc46 +Subproject commit 2f751675d92355e0071ef201a4ec9496278da274 diff --git a/outputs/examples/5/1 b/outputs/examples/5/1 new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/outputs/examples/5/1 @@ -0,0 +1 @@ +3 \ No newline at end of file