<div dir="ltr"><div>Thanks Francesco,</div><div>I will correct this.</div><div>Any ideas for improvements on other levels?</div><div>Michel:)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 24, 2019 at 1:35 AM Francesco Ariis <<a href="mailto:fa-ml@ariis.it">fa-ml@ariis.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Michel,<br>
<br>
On Sat, Feb 23, 2019 at 04:36:24PM +0100, Michel Haber wrote:<br>
> I am looking for feedback in order to improve my Haskell code on<br>
> all levels. [...]<br>
<br>
Minor lint suggestion: why<br>
<br>
> main :: IO ()<br>
> main = do<br>
> let size = read input<br>
> let rules = stdRules size<br>
> let initial = map read . words $ start<br>
> let game = advance rules stdNeighbors<br>
> loop game initial<br>
<br>
instead of?<br>
<br>
> let size = read input<br>
> rules = stdRules size<br>
> initial = map read . words $ start<br>
> game = advance rules stdNeighbors<br>
<br>
Other than that, code is readable and clear!<br>
-F<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>