Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/petertseng/adventofcode-hs-2021

Solutions to https://adventofcode.com/2021 (all but day 23, unlikely to add day 23 due to lack of interest)
https://github.com/petertseng/adventofcode-hs-2021

advent-of-code advent-of-code-2021 haskell

Last synced: 30 days ago
JSON representation

Solutions to https://adventofcode.com/2021 (all but day 23, unlikely to add day 23 due to lack of interest)

Awesome Lists containing this project

README

        

# Advent of Code

[![Build Status](https://travis-ci.org/petertseng/adventofcode-hs-2021.svg?branch=master)](https://travis-ci.org/petertseng/adventofcode-hs-2021)

These are my solutions to http://adventofcode.com

All solutions are written in Haskell.

## Input

In general, all solutions can be invoked in both of the following ways:

* Without command-line arguments, takes input on standard input.
* With 1+ command-line arguments, reads input from the first, which must be the path to an input file.
Arguments beyond the first are ignored.

Some may additionally support other ways:

None yet.

## Closing thoughts

Day 16 was my first use of a monadic parser.
The code was much easier to read than the manual parser.

Day 19 was interesting since I think it's the first time I've used the Applicative (or Monad) instance of [].

## Past solutions

The [index](https://github.com/petertseng/adventofcode-common/blob/master/index.md) lists all years/languages I've ever done (or will ever do).