From: Neil Smith Date: Mon, 6 Dec 2021 11:45:57 +0000 (+0000) Subject: Removed unnecessary type annotation X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=c5f1287d34e4364180c11bc2edc82dbf0c1a0cca;p=advent-of-code-21.git Removed unnecessary type annotation --- diff --git a/advent06/Main.hs b/advent06/Main.hs index 6b37771..27fc18a 100644 --- a/advent06/Main.hs +++ b/advent06/Main.hs @@ -9,7 +9,7 @@ type Shoal = M.IntMap Integer main :: IO () main = do text <- readFile "data/advent06.txt" - let fish = map (read @Int) $ splitOn "," text + let fish = map read $ splitOn "," text let shoal = mkShoal fish let generations = iterate generation shoal print $ part1 generations