Skip to content

Latest commit

 

History

History

2020

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Advent of Code in Haskell 2020

Prequsites

  • Stack
  • Haskell
  • Christmas 2020

Building

stack build

Running a day

cd <to correct directory in src>

Then:

stack runghc Day01.hs < input.txt

or

echo -n "yourinput" | stack runghc Day01.hs

Running a test

The tests are from the example of the day

stack runghc test.hs