-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lecture 3 solutions #3
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, the exercises for Lecture 3 are done! 🏆
You've almost finished the course 🤯
Keep up the great work and I hope you're enjoying the course so far 🤗
The finish line is near 🏁
-- 🆙 Bonus challenge 2: Now, could you improve the implementation so it | ||
-- would work for **any** enumeration type in Haskell (e.g. 'Bool', | ||
-- 'Ordering') and not just 'Weekday'? | ||
next :: (Eq a, Bounded a, Enum a) => a -> a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bonus points for solving all extra challenges 💯 🔝
-- | Does 'List1' have the 'Monoid' instance? If no then why? | ||
-- | ||
-- instance Monoid (List1 a) where | ||
-- no, List1 is non empty type, can't make mempty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely correct 🆗
Solutions for Lecture 3
cc @chshersh