Advent of Code 2018! In HASKELL!
Sooo.. Third year in a row! ๐ค
Second year with Haskell, hopefully giving more functional-like answers than last year's code, which most of the time was using a functional syntax in a imperative way of thinking.
No IDE this year! Only Sublime Text, ghci and lots of lookups on Hoogle.
To run the code for a specific day, load it up in ghci, then call the part1 or part2 function:
$ ghci day42
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
*Main> part1
42
*Main> part2
"42 is the answer"The code could also be compiled with ghc for improved run-time performance:
$ ghc day42
$ ./day42
Solving..
Part 1: 42
Part 2: "42 is the answer"Just like the past years, I will keep a journal of the most challenging/interesting things I'll learn during this journey.
| Day | Stars | Notes |
|---|---|---|
| Day 1 | โญ๏ธ๐ | |
| Day 2 | โญ๏ธ๐ | ๐ |
| Day 5 | โญ๏ธ๐ |