Day eleven

This commit is contained in:
2024-12-11 21:15:35 +01:00
parent c255b82f2d
commit 8802d0c001
9 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
module Main (main) where
import System.Environment.Blank ( getArgs )
import Lib (task1, 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>"