Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Lecture 3 solutions #3

wants to merge 5 commits into from

Conversation

racagogi
Copy link
Owner

Solutions for Lecture 3

cc @chshersh

Copy link

@chshersh chshersh left a 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
Copy link

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely correct 🆗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants