Advent of Code 2022 Complete

Here are my complete Advent of Code 2022 solutions in a average of 27 lines of code (LOC). My main emphasis was solving everything using minimum LOC and minimal vocabulary whilst maintaining reasonable performance.

I wanted to share it because I only had about 2 weeks experience with Haskell (did this course) when I had started it, so others learning the language may find it a useful resource since for any given solution you don’t need to understand much outside of a handful of functions from the standard library or the containers package.

I’m ever grateful for comments and criticisms.

11 Likes