17 lines
320 B
Haskell
17 lines
320 B
Haskell
{-# LANGUAGE LambdaCase #-}
|
|
|
|
module Main where
|
|
|
|
import Day1 qualified
|
|
import Day2 qualified
|
|
import System.Environment (getArgs)
|
|
import qualified Day3
|
|
|
|
main :: IO ()
|
|
main = do
|
|
getArgs >>= \case
|
|
["day1"] -> Day1.run
|
|
["day2"] -> Day2.run
|
|
["day3"] -> Day3.run
|
|
args -> error $ "Invlaid args: " <> show args
|