From ce7064347674b1f3d6f68c5ffb1795b367357ad4 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Tue, 9 Dec 2025 10:27:50 +0000 Subject: [PATCH] Initialise day 9 --- haskell/Main.hs | 2 ++ haskell/Puzzles/Day9.hs | 15 +++++++++++++++ haskell/aoc.cabal | 1 + inputs/examples/9 | 8 ++++++++ inputs/private | 2 +- outputs/examples/9/1 | 1 + 6 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 haskell/Puzzles/Day9.hs create mode 100644 inputs/examples/9 create mode 100644 outputs/examples/9/1 diff --git a/haskell/Main.hs b/haskell/Main.hs index ad45d93..39af2f4 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -12,6 +12,7 @@ import Puzzles.Day5 qualified as Day5 import Puzzles.Day6 qualified as Day6 import Puzzles.Day7 qualified as Day7 import Puzzles.Day8 qualified as Day8 +import Puzzles.Day9 qualified as Day9 import Test.Tasty.Ingredients.ConsoleReporter main :: IO () @@ -29,6 +30,7 @@ main = , Day6.puzzle , Day7.puzzle , Day8.puzzle + , Day9.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day9.hs b/haskell/Puzzles/Day9.hs new file mode 100644 index 0000000..103ffd7 --- /dev/null +++ b/haskell/Puzzles/Day9.hs @@ -0,0 +1,15 @@ +module Puzzles.Day9 (puzzle) where + +import Pre + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 9 + , parser = mempty + , parts = + [ \() -> + "TODO" + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index 6be3f13..69842eb 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -18,6 +18,7 @@ executable aoc Puzzles.Day6 Puzzles.Day7 Puzzles.Day8 + Puzzles.Day9 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/9 b/inputs/examples/9 new file mode 100644 index 0000000..c8563ea --- /dev/null +++ b/inputs/examples/9 @@ -0,0 +1,8 @@ +7,1 +11,1 +11,7 +9,7 +9,5 +2,5 +2,3 +7,3 diff --git a/inputs/private b/inputs/private index eaf1c6e..3f57387 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit eaf1c6e5513f5915839bf35b05d9f0cfcf28f0e6 +Subproject commit 3f57387897cb0f36f145088c1c9fcf7935e13322 diff --git a/outputs/examples/9/1 b/outputs/examples/9/1 new file mode 100644 index 0000000..c5b431b --- /dev/null +++ b/outputs/examples/9/1 @@ -0,0 +1 @@ +50 \ No newline at end of file