diff --git a/haskell/Main.hs b/haskell/Main.hs index 1fc208a..fc98e2c 100644 --- a/haskell/Main.hs +++ b/haskell/Main.hs @@ -14,6 +14,7 @@ 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 Puzzles.Day10 qualified as Day10 import Test.Tasty.Ingredients.ConsoleReporter main :: IO () @@ -32,6 +33,7 @@ main = , Day7.puzzle , Day8.puzzle , Day9.puzzle + , Day10.puzzle ] <&> \Puzzle{number, parser, parts, extraTests} -> let diff --git a/haskell/Puzzles/Day10.hs b/haskell/Puzzles/Day10.hs new file mode 100644 index 0000000..659f662 --- /dev/null +++ b/haskell/Puzzles/Day10.hs @@ -0,0 +1,15 @@ +module Puzzles.Day10 (puzzle) where + +import Pre + +puzzle :: Puzzle +puzzle = + Puzzle + { number = 10 + , parser = mempty + , parts = + [ \() -> + () + ] + , extraTests = mempty + } diff --git a/haskell/aoc.cabal b/haskell/aoc.cabal index 69842eb..517115c 100644 --- a/haskell/aoc.cabal +++ b/haskell/aoc.cabal @@ -19,6 +19,7 @@ executable aoc Puzzles.Day7 Puzzles.Day8 Puzzles.Day9 + Puzzles.Day10 default-language: GHC2024 default-extensions: BlockArguments diff --git a/inputs/examples/10 b/inputs/examples/10 new file mode 100644 index 0000000..dd91d7b --- /dev/null +++ b/inputs/examples/10 @@ -0,0 +1,3 @@ +[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7} +[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2} +[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5} diff --git a/inputs/private b/inputs/private index 3f57387..e78eeb0 160000 --- a/inputs/private +++ b/inputs/private @@ -1 +1 @@ -Subproject commit 3f57387897cb0f36f145088c1c9fcf7935e13322 +Subproject commit e78eeb06c1bde97417b790a191335c159d9e0eaf diff --git a/outputs/examples/10/1 b/outputs/examples/10/1 new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/outputs/examples/10/1 @@ -0,0 +1 @@ +7