adventOfCode-2022/executable/Main.hs

20 lines
517 B
Haskell
Raw Normal View History

2022-12-13 16:39:09 +01:00
{-# LANGUAGE OverloadedStrings #-}
2022-12-09 21:32:19 +01:00
import AoC.Day1 as Day1
2022-12-13 16:39:09 +01:00
import AoC.Day2 as Day2
import qualified Data.Text.IO as T (readFile)
2022-12-09 21:32:19 +01:00
2022-12-08 11:26:39 +01:00
main :: IO ()
2022-12-09 21:32:19 +01:00
main = do
putStrLn "Hello World!"
2022-12-13 16:39:09 +01:00
input1 <- readFile "./input/day1.txt"
putStrLn $ show $ Day1.solveA input1
putStrLn $ show $ Day1.solveB input1
input2 <- T.readFile "./input/day2.txt"
putStrLn $ show $ Day2.solveA "A Y\nB X\nC Z"
putStrLn $ show $ Day2.solveA input2
putStrLn $ show $ Day2.solveB "A Y\nB X\nC Z"
putStrLn $ show $ Day2.solveB input2