projects
/
advent-of-code-21.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf21b80
)
Removed unnecessary type annotation
author
Neil Smith
<neil.git@njae.me.uk>
Mon, 6 Dec 2021 11:45:57 +0000
(11:45 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Mon, 6 Dec 2021 11:45:57 +0000
(11:45 +0000)
advent06/Main.hs
patch
|
blob
|
history
diff --git
a/advent06/Main.hs
b/advent06/Main.hs
index 6b3777132e3408122f37e83f4a213a588b872b02..27fc18a56cd76baf5d0127666aad24cd4eafd7ab 100644
(file)
--- 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