Day eight

This commit is contained in:
2024-12-08 13:40:17 +01:00
parent 8286304531
commit ff74e85ba6
11 changed files with 300 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
module Main (main) where
import System.Environment.Blank ( getArgs )
import Task1 (task1)
import Task2 (task2)
main :: IO ()
main = do
args <- getArgs
case args of
["1", file] -> do
input <- readFile file
print $ task1 input
["2", file] -> do
input <- readFile file
print $ task2 input
_ -> error "Usage: <1|2> <input file>"