Skip to content

Commit

Permalink
Update ghc's flags
Browse files Browse the repository at this point in the history
  • Loading branch information
godu committed Dec 3, 2024
1 parent ed6d275 commit 5b88291
Show file tree
Hide file tree
Showing 6 changed files with 609 additions and 514 deletions.
1 change: 1 addition & 0 deletions app/Inputs/Year2024/DayXX.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

272 changes: 149 additions & 123 deletions app/Year2020.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,126 +31,152 @@ import qualified AdventOfCode.Year2020.Day25 as Day25 (run1)

main :: IO ()
main = do
print "Day01"
fixture <- readFile "app/Inputs/Year2020/Day01.txt"
print $ "Result #1: " <> Day01.run1 fixture
print $ "Result #2: " <> Day01.run2 fixture

print "Day02"
fixture <- readFile "app/Inputs/Year2020/Day02.txt"
print $ "Result #1: " <> Day02.run1 fixture
print $ "Result #2: " <> Day02.run2 fixture

print "Day03"
fixture <- readFile "app/Inputs/Year2020/Day03.txt"
print $ "Result #1: " <> Day03.run1 fixture
print $ "Result #2: " <> Day03.run2 fixture

print "Day04"
fixture <- readFile "app/Inputs/Year2020/Day04.txt"
print $ "Result #1: " <> Day04.run1 fixture
print $ "Result #2: " <> Day04.run2 fixture

print "Day05"
fixture <- readFile "app/Inputs/Year2020/Day05.txt"
print $ "Result #1: " <> Day05.run1 fixture
print $ "Result #2: " <> Day05.run2 fixture

print "Day06"
fixture <- readFile "app/Inputs/Year2020/Day06.txt"
print $ "Result #1: " <> Day06.run1 fixture
print $ "Result #2: " <> Day06.run2 fixture

print "Day07"
fixture <- readFile "app/Inputs/Year2020/Day07.txt"
print $ "Result #1: " <> Day07.run1 fixture
print $ "Result #2: " <> Day07.run2 fixture

print "Day08"
fixture <- readFile "app/Inputs/Year2020/Day08.txt"
print $ "Result #1: " <> Day08.run1 fixture
print $ "Result #2: " <> Day08.run2 fixture

print "Day09"
fixture <- readFile "app/Inputs/Year2020/Day09.txt"
print $ "Result #1: " <> Day09.run1 fixture
print $ "Result #2: " <> Day09.run2 fixture

print "Day10"
fixture <- readFile "app/Inputs/Year2020/Day10.txt"
print $ "Result #1: " <> Day10.run1 fixture
print $ "Result #2: " <> Day10.run2 fixture

print "Day11"
fixture <- readFile "app/Inputs/Year2020/Day11.txt"
print $ "Result #1: " <> Day11.run1 fixture
print $ "Result #2: " <> Day11.run2 fixture

print "Day12"
fixture <- readFile "app/Inputs/Year2020/Day12.txt"
print $ "Result #1: " <> Day12.run1 fixture
print $ "Result #2: " <> Day12.run2 fixture

print "Day13"
fixture <- readFile "app/Inputs/Year2020/Day13.txt"
print $ "Result #1: " <> Day13.run1 fixture
print $ "Result #2: " <> Day13.run2 fixture

print "Day14"
fixture <- readFile "app/Inputs/Year2020/Day14.txt"
print $ "Result #1: " <> Day14.run1 fixture
print $ "Result #2: " <> Day14.run2 fixture

print "Day15"
fixture <- readFile "app/Inputs/Year2020/Day15.txt"
print $ "Result #1: " <> Day15.run1 fixture
print $ "Result #2: " <> Day15.run2 fixture

print "Day16"
fixture <- readFile "app/Inputs/Year2020/Day16.txt"
print $ "Result #1: " <> Day16.run1 fixture
print $ "Result #2: " <> Day16.run2 fixture

print "Day17"
fixture <- readFile "app/Inputs/Year2020/Day17.txt"
print $ "Result #1: " <> Day17.run1 fixture
print $ "Result #2: " <> Day17.run2 fixture

print "Day18"
fixture <- readFile "app/Inputs/Year2020/Day18.txt"
print $ "Result #1: " <> Day18.run1 fixture
print $ "Result #2: " <> Day18.run2 fixture

print "Day19"
fixture <- readFile "app/Inputs/Year2020/Day19.txt"
print $ "Result #1: " <> Day19.run1 fixture
print $ "Result #2: " <> Day19.run2 fixture

print "Day20"
fixture <- readFile "app/Inputs/Year2020/Day20.txt"
print $ "Result #1: " <> Day20.run1 fixture
print $ "Result #2: " <> Day20.run2 fixture

print "Day21"
fixture <- readFile "app/Inputs/Year2020/Day21.txt"
print $ "Result #1: " <> Day21.run1 fixture
print $ "Result #2: " <> Day21.run2 fixture

print "Day22"
fixture <- readFile "app/Inputs/Year2020/Day22.txt"
print $ "Result #1: " <> Day22.run1 fixture
print $ "Result #2: " <> Day22.run2 fixture

print "Day23"
fixture <- readFile "app/Inputs/Year2020/Day23.txt"
print $ "Result #1: " <> Day23.run1 fixture
print $ "Result #2: " <> Day23.run2 fixture

print "Day24"
fixture <- readFile "app/Inputs/Year2020/Day24.txt"
print $ "Result #1: " <> Day24.run1 fixture
print $ "Result #2: " <> Day24.run2 fixture

print "Day25"
fixture <- readFile "app/Inputs/Year2020/Day25.txt"
print $ "Result #1: " <> Day25.run1 fixture

do
print "Day01"
fixture <- readFile "app/Inputs/Year2020/Day01.txt"
print $ "Result #1: " <> Day01.run1 fixture
print $ "Result #2: " <> Day01.run2 fixture

do
print "Day02"
fixture <- readFile "app/Inputs/Year2020/Day02.txt"
print $ "Result #1: " <> Day02.run1 fixture
print $ "Result #2: " <> Day02.run2 fixture

do
print "Day03"
fixture <- readFile "app/Inputs/Year2020/Day03.txt"
print $ "Result #1: " <> Day03.run1 fixture
print $ "Result #2: " <> Day03.run2 fixture

do
print "Day04"
fixture <- readFile "app/Inputs/Year2020/Day04.txt"
print $ "Result #1: " <> Day04.run1 fixture
print $ "Result #2: " <> Day04.run2 fixture

do
print "Day05"
fixture <- readFile "app/Inputs/Year2020/Day05.txt"
print $ "Result #1: " <> Day05.run1 fixture
print $ "Result #2: " <> Day05.run2 fixture

do
print "Day06"
fixture <- readFile "app/Inputs/Year2020/Day06.txt"
print $ "Result #1: " <> Day06.run1 fixture
print $ "Result #2: " <> Day06.run2 fixture

do
print "Day07"
fixture <- readFile "app/Inputs/Year2020/Day07.txt"
print $ "Result #1: " <> Day07.run1 fixture
print $ "Result #2: " <> Day07.run2 fixture

do
print "Day08"
fixture <- readFile "app/Inputs/Year2020/Day08.txt"
print $ "Result #1: " <> Day08.run1 fixture
print $ "Result #2: " <> Day08.run2 fixture

do
print "Day09"
fixture <- readFile "app/Inputs/Year2020/Day09.txt"
print $ "Result #1: " <> Day09.run1 fixture
print $ "Result #2: " <> Day09.run2 fixture

do
print "Day10"
fixture <- readFile "app/Inputs/Year2020/Day10.txt"
print $ "Result #1: " <> Day10.run1 fixture
print $ "Result #2: " <> Day10.run2 fixture

do
print "Day11"
fixture <- readFile "app/Inputs/Year2020/Day11.txt"
print $ "Result #1: " <> Day11.run1 fixture
print $ "Result #2: " <> Day11.run2 fixture

do
print "Day12"
fixture <- readFile "app/Inputs/Year2020/Day12.txt"
print $ "Result #1: " <> Day12.run1 fixture
print $ "Result #2: " <> Day12.run2 fixture

do
print "Day13"
fixture <- readFile "app/Inputs/Year2020/Day13.txt"
print $ "Result #1: " <> Day13.run1 fixture
print $ "Result #2: " <> Day13.run2 fixture

do
print "Day14"
fixture <- readFile "app/Inputs/Year2020/Day14.txt"
print $ "Result #1: " <> Day14.run1 fixture
print $ "Result #2: " <> Day14.run2 fixture

do
print "Day15"
fixture <- readFile "app/Inputs/Year2020/Day15.txt"
print $ "Result #1: " <> Day15.run1 fixture
print $ "Result #2: " <> Day15.run2 fixture

do
print "Day16"
fixture <- readFile "app/Inputs/Year2020/Day16.txt"
print $ "Result #1: " <> Day16.run1 fixture
print $ "Result #2: " <> Day16.run2 fixture

do
print "Day17"
fixture <- readFile "app/Inputs/Year2020/Day17.txt"
print $ "Result #1: " <> Day17.run1 fixture
print $ "Result #2: " <> Day17.run2 fixture

do
print "Day18"
fixture <- readFile "app/Inputs/Year2020/Day18.txt"
print $ "Result #1: " <> Day18.run1 fixture
print $ "Result #2: " <> Day18.run2 fixture

do
print "Day19"
fixture <- readFile "app/Inputs/Year2020/Day19.txt"
print $ "Result #1: " <> Day19.run1 fixture
print $ "Result #2: " <> Day19.run2 fixture

do
print "Day20"
fixture <- readFile "app/Inputs/Year2020/Day20.txt"
print $ "Result #1: " <> Day20.run1 fixture
print $ "Result #2: " <> Day20.run2 fixture

do
print "Day21"
fixture <- readFile "app/Inputs/Year2020/Day21.txt"
print $ "Result #1: " <> Day21.run1 fixture
print $ "Result #2: " <> Day21.run2 fixture

do
print "Day22"
fixture <- readFile "app/Inputs/Year2020/Day22.txt"
print $ "Result #1: " <> Day22.run1 fixture
print $ "Result #2: " <> Day22.run2 fixture

do
print "Day23"
fixture <- readFile "app/Inputs/Year2020/Day23.txt"
print $ "Result #1: " <> Day23.run1 fixture
print $ "Result #2: " <> Day23.run2 fixture

do
print "Day24"
fixture <- readFile "app/Inputs/Year2020/Day24.txt"
print $ "Result #1: " <> Day24.run1 fixture
print $ "Result #2: " <> Day24.run2 fixture

do
print "Day25"
fixture <- readFile "app/Inputs/Year2020/Day25.txt"
print $ "Result #1: " <> Day25.run1 fixture
Loading

0 comments on commit 5b88291

Please sign in to comment.