Advent of Code complete solution archive and common library
Haskell
48
739 commits
updated Dec 12, 2025
This is my complete set of solutions for the Advent of Code annual programming game.
Generated Haddocks are available at https://glguy.net/advent/
These libraries and solutions are provided under the ISC license.
ghcup install ghc 9.10.1cabal configure -w ghc-9.10.1cabal build allGHC 9.6.3 isn't specifically required, however it's what I test with and what I use in CI.
There are multiple methods for finding the input file for each solution.
inputs/YEAR/DAY.txt- argument reads from stdin.+ argument reads input from second command line argument as a string literal.Examples:
$ sln_2022_01 # defaults to inputs/2022/01.txt
$ sln_2022_01 example.txt # reads example.txt
$ sln_2022_01 - # reads from stdin
$ sln_2022_01 + '"1\n2\n\n3\n4\n"' # parses Haskell string literal
739 commits
Haskell
99.4%
Advent of Code complete solution archive and common library
Haskell
48
739 commits
updated Dec 12, 2025
This is my complete set of solutions for the Advent of Code annual programming game.
Generated Haddocks are available at https://glguy.net/advent/
These libraries and solutions are provided under the ISC license.
ghcup install ghc 9.10.1cabal configure -w ghc-9.10.1cabal build allGHC 9.6.3 isn't specifically required, however it's what I test with and what I use in CI.
There are multiple methods for finding the input file for each solution.
inputs/YEAR/DAY.txt- argument reads from stdin.+ argument reads input from second command line argument as a string literal.Examples:
$ sln_2022_01 # defaults to inputs/2022/01.txt
$ sln_2022_01 example.txt # reads example.txt
$ sln_2022_01 - # reads from stdin
$ sln_2022_01 + '"1\n2\n\n3\n4\n"' # parses Haskell string literal
739 commits
Haskell
99.4%