Skip to content

GiovanniFrigo/advent-of-code-2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Advent of Code 2018! In HASKELL!

Sooo.. Third year in a row! ๐Ÿค“

Haskell!

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.

IDE

No IDE this year! Only Sublime Text, ghci and lots of lookups on Hoogle.

Running the code

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"

Journal

Just like the past years, I will keep a journal of the most challenging/interesting things I'll learn during this journey.

What I learned ๐Ÿ“–

Completed challenges

Day Stars Notes
Day 1 โญ๏ธ๐ŸŒŸ
Day 2 โญ๏ธ๐ŸŒŸ ๐Ÿ“–
Day 5 โญ๏ธ๐ŸŒŸ

About

My participation to the 2018 edition of http://adventofcode.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published