Commit changed files
This commit is contained in:
parent
d4c395b713
commit
1dfb00952c
2 changed files with 21 additions and 0 deletions
19
hs/src/Aoc/Y2020/D23.hs
Normal file
19
hs/src/Aoc/Y2020/D23.hs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
module Aoc.Y2020.D23
|
||||
( day
|
||||
) where
|
||||
|
||||
import Data.Sequence as Seq
|
||||
|
||||
import Aoc.Day
|
||||
import Aoc.Parse
|
||||
|
||||
parser :: Parser (Seq Int)
|
||||
parser = Seq.fromList <$> many digit <* newline
|
||||
|
||||
solver :: Seq Int -> IO ()
|
||||
solver circle = do
|
||||
putStrLn ">> Part 1"
|
||||
print circle
|
||||
|
||||
day :: Day
|
||||
day = dayParse parser solver
|
||||
Loading…
Add table
Add a link
Reference in a new issue