Couple of typo fixes.
authorNeil Smith <neil.git@njae.me.uk>
Sun, 1 Dec 2019 16:49:54 +0000 (16:49 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Sun, 1 Dec 2019 16:50:24 +0000 (16:50 +0000)
README.md
advent01/src/advent01.hs

index f148061eac93b81598223e6e14662880c472f4f4..4430c77d886bfae6ca59c787d11f96a4db3c2ec9 100644 (file)
--- 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`.
 
 
 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
 Compile with
 ```
 stack build
index 014fbb26f8093bf24c87fbce6990715bfabc0904..0b9dec57dc93b111bea9a67e2eb402464c681696 100644 (file)
@@ -21,7 +21,7 @@ part1 :: [Int] -> Int
 part1 = sum . map fuelRequired
 
 part2 :: [Int] -> Int
 part1 = sum . map fuelRequired
 
 part2 :: [Int] -> Int
-part2= sum . map fuelForFuel
+part2 = sum . map fuelForFuel
 
 
 fuelRequired :: Int -> Int
 
 
 fuelRequired :: Int -> Int