From 3add87c991ec85f531c2cffea142b00c52d274a6 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Sun, 1 Dec 2019 16:49:54 +0000 Subject: [PATCH] Couple of typo fixes. --- README.md | 2 ++ advent01/src/advent01.hs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1