<div dir="auto"><div>The changes needed to make it work should be minor. Since you call out the chapter on monoids, any Monoid instance now needs a Semigroup instance.</div><div dir="auto"><br></div><div dir="auto">Before:</div><div dir="auto"><br></div><div dir="auto">instance Monoid X where</div><div dir="auto">  mappend a b = ...</div><div dir="auto">  mempty = ...<br><br>Now:</div><div dir="auto"><br></div><div dir="auto">instance Semigroup X where</div><div dir="auto">  a <> b = ...</div><div dir="auto">instance Monoid X where</div><div dir="auto">  -- mappend no longer needs to be defined</div><div dir="auto">  mempty = ...</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Nov 6, 2022, 12:37 PM Borys Kopeć <<a href="mailto:boryskopec00@gmail.com">boryskopec00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I've been working through the <a href="https://www.cis.upenn.edu/~cis1940/spring13/lectures.html" target="_blank" rel="noreferrer">CIS 194</a> course recently and unfortunately from lecture 7 onwards the code is not compliant with current compiler.</div><div><br></div><div>I can still follow the lectures but I'd like to do every homework exercise. Unfortunately most homework exercises provide you with a code framework to work with and this code does not compile.<br></div><div><br></div><div>Do any of you know about updated versions or corrections to this course? I believe there could be a repo where someone is keeping the course's homework up to date because this course is still quite popular.</div><div><br></div><div>Regards</div><div>Borys<br></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div></div>