From cb86dad00677dd54473e6a2762d2bfd5b607e85c Mon Sep 17 00:00:00 2001 From: George Thomas Date: Mon, 8 Dec 2025 13:40:55 +0000 Subject: [PATCH] Initialise day 8 --- haskell/Main.hs | 2 ++ haskell/Puzzles/Day8.hs | 15 +++++++++++++++ haskell/aoc.cabal | 1 + inputs/examples/8 | 20 ++++++++++++++++++++ inputs/private | 2 +- outputs/examples/8/1 | 1 + 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 haskell/Puzzles/Day8.hs create mode 100644 inputs/examples/8 create mode 100644 outputs/examples/8/1 diff --git a/haskell/Main.hs b/haskell/Main.hs index 3e02255..0b9c8f3 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -11,6 +11,7 @@ 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 Puzzles.Day8 qualified as Day8 import Test.Tasty.Ingredients.ConsoleReporter main :: IO () @@ -27,6 +28,7 @@ main = , Day5.puzzle , Day6.puzzle , Day7.puzzle + , Day8.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day8.hs b/haskell/Puzzles/Day8.hs new file mode 100644 index 0000000..b52e740 --- /dev/null +++ b/haskell/Puzzles/Day8.hs @@ -0,0 +1,15 @@ +module Puzzles.Day8 (puzzle) where + +import Pre + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 8 + , parser = pure () + , parts = + [ \() -> + "TODO" + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index f613ba0..785832f 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -17,6 +17,7 @@ executable aoc Puzzles.Day5 Puzzles.Day6 Puzzles.Day7 + Puzzles.Day8 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/8 b/inputs/examples/8 new file mode 100644 index 0000000..e98a3b6 --- /dev/null +++ b/inputs/examples/8 @@ -0,0 +1,20 @@ +162,817,812 +57,618,57 +906,360,560 +592,479,940 +352,342,300 +466,668,158 +542,29,236 +431,825,988 +739,650,466 +52,470,668 +216,146,977 +819,987,18 +117,168,530 +805,96,715 +346,949,466 +970,615,88 +941,993,340 +862,61,35 +984,92,344 +425,690,689 diff --git a/inputs/private b/inputs/private index ce0edef..eaf1c6e 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit ce0edefb9bb3245e9fa6149b55495e79d05f07ff +Subproject commit eaf1c6e5513f5915839bf35b05d9f0cfcf28f0e6 diff --git a/outputs/examples/8/1 b/outputs/examples/8/1 new file mode 100644 index 0000000..86ee83a --- /dev/null +++ b/outputs/examples/8/1 @@ -0,0 +1 @@ +40 \ No newline at end of file