Skip to content

morteako/aoc2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2020

My Haskell solutions for https://adventofcode.com/2020

Can read input from stdin, a file or fetched from adventofcode.com/DAY/input (saved into a file, to avoid spamming the server). Can choose day from cmdargs.

Days completed

Usage

Usage: <interactive> [--day DAY] [--stdin | --file FILENAME]
  Run a advent of code challenge. Default is to run the last implemented
  challenge and fetch the corresponding input

Available options:
  --day DAY                Run challenge for the provided day
  --stdin                  Read from stdin
  --file FILENAME          Read from input file
  -h,--help                Show this help text

Build

stack build

Run

From terminal : stack exec aoc2020 -- [cmdargs]

Interactive : stack ghci and then :main [cmdargs]