diff options
author | Akshay <[email protected]> | 2020-12-04 08:51:24 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-12-04 08:51:24 +0000 |
commit | 031746bd8c349b485b4914d1788ec944b1e534a2 (patch) | |
tree | 187573bc58c1318d7292fac771cf5b28b98eea62 /execs/Day02.hs | |
parent | 24dade573ba48d83265f88e3850958ff7e3d61bd (diff) |
add initial solution to day 4
Diffstat (limited to 'execs/Day02.hs')
-rw-r--r-- | execs/Day02.hs | 4 |
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 | ||
38 | main :: IO () | 38 | main :: IO () |
39 | main = do | 39 | main = 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 |