2023-12-01 08:19:49 +00:00
|
|
|
{-# LANGUAGE LambdaCase #-}
|
2023-12-02 08:22:52 +00:00
|
|
|
|
2023-12-01 08:19:49 +00:00
|
|
|
module Main where
|
|
|
|
|
2023-12-02 08:22:52 +00:00
|
|
|
import Day1 qualified
|
|
|
|
import Day2 qualified
|
2023-12-01 08:19:49 +00:00
|
|
|
import System.Environment (getArgs)
|
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
main = do
|
|
|
|
getArgs >>= \case
|
|
|
|
["day1"] -> Day1.run
|
2023-12-02 08:22:52 +00:00
|
|
|
["day2"] -> Day2.run
|
2023-12-01 08:19:49 +00:00
|
|
|
args -> error $ "Invlaid args: " <> show args
|