Add 2023 template
This commit is contained in:
parent
cf2af11b6b
commit
d06f469bb7
54 changed files with 240 additions and 4 deletions
10
src/AoC.hs
10
src/AoC.hs
|
|
@ -12,11 +12,13 @@ import Control.Exception qualified as Exception
|
|||
import System.IO (hPutStrLn)
|
||||
import System.IO.Error qualified as IOError
|
||||
|
||||
-- import AoC.Y0000 qualified as Y0000
|
||||
import AoC.Y2023 qualified as Y2023
|
||||
|
||||
runAoC :: [String] -> IO ()
|
||||
runAoC _args =
|
||||
putStrLn "Hello"
|
||||
runAoC :: (MonadIO m) => [String] -> m ()
|
||||
runAoC _args = do
|
||||
riddle <- loadRiddle Y2023 D01
|
||||
result <- Y2023.solve D01 riddle
|
||||
print result
|
||||
|
||||
handleError :: IOError.IOError -> IO ()
|
||||
handleError e = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue