From: Neil Smith Date: Sun, 1 Dec 2019 16:49:54 +0000 (+0000) Subject: Couple of typo fixes. X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-19.git;a=commitdiff_plain;h=3add87c991ec85f531c2cffea142b00c52d274a6 Couple of typo fixes. --- diff --git a/README.md b/README.md index f148061..4430c77 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ Modify the `stack.yaml` file as needed, such as adding the `ghc-options` stanza. Each day lives in a separate directory within the `src` directory. It will also need it's own stanza in `advent-of-code.cabal`. +Stack configuration taken from https://github.com/mstksg/advent-of-code-2018 + Compile with ``` stack build diff --git a/advent01/src/advent01.hs b/advent01/src/advent01.hs index 014fbb2..0b9dec5 100644 --- a/advent01/src/advent01.hs +++ b/advent01/src/advent01.hs @@ -21,7 +21,7 @@ part1 :: [Int] -> Int part1 = sum . map fuelRequired part2 :: [Int] -> Int -part2= sum . map fuelForFuel +part2 = sum . map fuelForFuel fuelRequired :: Int -> Int