3 -- import Data.Text (Text)
4 import qualified Data.Text.IO as TIO
8 text <- TIO.readFile "data/advent09.txt"
9 let mem = parseMachineMemory text
13 part1 mem = head output
14 where (_, _, output) = runProgram [1] mem
16 part2 mem = head output
17 where (_, _, output) = runProgram [2] mem