项目作者: jamesconstable

项目描述 :
A set of Haskell solvers for the Advent of Code 2020
高级语言: Haskell
项目地址: git://github.com/jamesconstable/aoc2020.git
创建时间: 2020-12-01T13:15:50Z
项目社区:https://github.com/jamesconstable/aoc2020

开源协议:MIT License

下载


Advent of Code 2020

My plan for this year’s Advent of Code is to
work on quickly producing tidy Haskell solutions using only the libraries
included with GHC.

Instructions

To compile a solver, run

  1. ghc --make -no-keep-hi-files -no-keep-o-files <day_number>

replacing <day_number> with 01, 02, etc. This will produce an executable
with the same name in the current directory.

All solvers take a command line argument indicating which part to solve, and
read their input from stdin. For example, to run part 2 of the Day 1 solver with
the input in input.txt, type:

  1. ./01 2 < input.txt