/aoc21

Advent of Code 2021

Primary LanguageHaskellOtherNOASSERTION

Advent of Code 2021

Advent of Code 2021, in Haskell

http://adventofcode.com/2021

Instructions

Before you compile the code, you'll need to create the Session module at src/Session.hs and provide your session cookie. This will download your input files automatically, and cache them.

module Session where

import Relude.String (ByteString)

session :: ByteString
session = "<YOUR SESSION COOKIE HERE>"

You should have stack installed before continuing.

git clone git@github.com:mvaldesdeleon/aoc21.git
cd aoc21
# Create the Session module
cat << EOF > src/Session.hs
module Session where

import Relude.String (ByteString)

session :: ByteString
session = "<YOUR SESSION COOKIE HERE>"
EOF
stack build
stack exec aoc21 day[1-5]
# i.e., stack exec aoc21 day1

You can also override the input file for testing:

stack exec aoc21 day1 --input alternative/input.txt

Live Stream

I'll be live streaming my solutions on twitch. No fixed schedule, but I would expect something between 18:00 and 22:00 CET.

License

BSD-3-Clause