diff options
author | Laura Orvokki Kursula <lav@vampires.gay> | 2024-12-07 23:58:47 +0100 |
---|---|---|
committer | Laura Orvokki Kursula <lav@vampires.gay> | 2024-12-07 23:58:47 +0100 |
commit | 62183b8bc18259742d420ee96ab85fbb33397ffd (patch) | |
tree | e8c0814afb65f212f858eeda7dadd581400fad1c /7-1.hs | |
parent | 66c22faa1fd89b201154034ae7f5e618f00a8239 (diff) | |
download | aoc2024-62183b8bc18259742d420ee96ab85fbb33397ffd.tar.gz aoc2024-62183b8bc18259742d420ee96ab85fbb33397ffd.zip |
Clean up code
(mostly just an excuse for testing magit)
Diffstat (limited to '7-1.hs')
-rw-r--r-- | 7-1.hs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -17,6 +17,4 @@ result xs = sum . map fst . filter snd $ zip (map fst xs) (map (uncurry check) xs) main :: IO () -main = do - ls <- lines <$> getContents - print . result . map parseLine $ ls +main = getContents >>= print . result . map parseLine . lines |