diff options
author | Akshay <[email protected]> | 2020-12-05 03:15:40 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-12-05 03:15:40 +0000 |
commit | 33549e923debfa5c586e2b27938ff9574c9de5bf (patch) | |
tree | 020cda28648f7b105f54dc0f544eb0d966c2a130 /execs | |
parent | c5e1079518eaa7bde5bea0713533bbab26466ecc (diff) |
normalize outputs to print part 1 and 2
Diffstat (limited to 'execs')
-rw-r--r-- | execs/Day02.hs | 5 |
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 | ||
38 | main :: IO () | 38 | main :: IO () |
39 | main = do | 39 | main = 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) | ||