Removed unnecessary type annotation
[advent-of-code-21.git] / advent06 / Main.hs
index 6b3777132e3408122f37e83f4a213a588b872b02..27fc18a56cd76baf5d0127666aad24cd4eafd7ab 100644 (file)
@@ -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