From 3412b04af118b2272a3b2057767b5682ce67ebb7 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Mon, 8 Dec 2025 13:32:15 +0000 Subject: [PATCH] Initialise day 7 --- haskell/Main.hs | 2 ++ haskell/Puzzles/Day7.hs | 15 +++++++++++++++ haskell/aoc.cabal | 1 + inputs/examples/7 | 16 ++++++++++++++++ inputs/private | 2 +- outputs/examples/7/1 | 1 + 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 haskell/Puzzles/Day7.hs create mode 100644 inputs/examples/7 create mode 100644 outputs/examples/7/1 diff --git a/haskell/Main.hs b/haskell/Main.hs index 73b44a8..3e02255 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -10,6 +10,7 @@ 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 Puzzles.Day7 qualified as Day7 import Test.Tasty.Ingredients.ConsoleReporter main :: IO () @@ -25,6 +26,7 @@ main = , Day4.puzzle , Day5.puzzle , Day6.puzzle + , Day7.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day7.hs b/haskell/Puzzles/Day7.hs new file mode 100644 index 0000000..d682bfc --- /dev/null +++ b/haskell/Puzzles/Day7.hs @@ -0,0 +1,15 @@ +module Puzzles.Day7 (puzzle) where + +import Pre + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 7 + , parser = pure () + , parts = + [ \() -> + "TODO" + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index ee2e545..f613ba0 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -16,6 +16,7 @@ executable aoc Puzzles.Day4 Puzzles.Day5 Puzzles.Day6 + Puzzles.Day7 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/7 b/inputs/examples/7 new file mode 100644 index 0000000..57a2466 --- /dev/null +++ b/inputs/examples/7 @@ -0,0 +1,16 @@ +.......S....... +............... +.......^....... +............... +......^.^...... +............... +.....^.^.^..... +............... +....^.^...^.... +............... +...^.^...^.^... +............... +..^...^.....^.. +............... +.^.^.^.^.^...^. +............... diff --git a/inputs/private b/inputs/private index 7e458d7..ce0edef 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit 7e458d7cc565d7b40ecab967357561f6c8de5ab3 +Subproject commit ce0edefb9bb3245e9fa6149b55495e79d05f07ff diff --git a/outputs/examples/7/1 b/outputs/examples/7/1 new file mode 100644 index 0000000..b5045cc --- /dev/null +++ b/outputs/examples/7/1 @@ -0,0 +1 @@ +21 \ No newline at end of file