aboutsummaryrefslogtreecommitdiff
path: root/execs/Day02.hs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-04 08:51:24 +0000
committerAkshay <[email protected]>2020-12-04 08:51:24 +0000
commit031746bd8c349b485b4914d1788ec944b1e534a2 (patch)
tree187573bc58c1318d7292fac771cf5b28b98eea62 /execs/Day02.hs
parent24dade573ba48d83265f88e3850958ff7e3d61bd (diff)
add initial solution to day 4
Diffstat (limited to 'execs/Day02.hs')
-rw-r--r--execs/Day02.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/execs/Day02.hs b/execs/Day02.hs
index f67778b..b06b44d 100644
--- a/execs/Day02.hs
+++ b/execs/Day02.hs
@@ -37,5 +37,5 @@ parseLine parser line = right $ parse parser "input" line
37 37
38main :: IO () 38main :: IO ()
39main = do 39main = do
40 n <- map (fromEnum . doCheck2 . parseLine parseProp) . lines <$> readFile "input/02" 40 n <- map (doCheck2 . parseLine parseProp) . lines <$> readFile "input/02"
41 print $ sum n 41 print $ countElem True n