aboutsummaryrefslogtreecommitdiff
path: root/execs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-05 03:15:40 +0000
committerAkshay <[email protected]>2020-12-05 03:15:40 +0000
commit33549e923debfa5c586e2b27938ff9574c9de5bf (patch)
tree020cda28648f7b105f54dc0f544eb0d966c2a130 /execs
parentc5e1079518eaa7bde5bea0713533bbab26466ecc (diff)
normalize outputs to print part 1 and 2
Diffstat (limited to 'execs')
-rw-r--r--execs/Day02.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/execs/Day02.hs b/execs/Day02.hs
index b06b44d..a2815b7 100644
--- a/execs/Day02.hs
+++ b/execs/Day02.hs
@@ -37,5 +37,6 @@ parseLine parser line = right $ parse parser "input" line
37 37
38main :: IO () 38main :: IO ()
39main = do 39main = do
40 n <- map (doCheck2 . parseLine parseProp) . lines <$> readFile "input/02" 40 n <- map (parseLine parseProp) . lines <$> readFile "input/02"
41 print $ countElem True n 41 print $ countElem True (map doCheck1 n)
42 print $ countElem True (map doCheck2 n)