Skip to content

feat: solutions chapter 4#4

Open
jacksjm wants to merge 1 commit intomasterfrom
feature/chapter4
Open

feat: solutions chapter 4#4
jacksjm wants to merge 1 commit intomasterfrom
feature/chapter4

Conversation

@jacksjm
Copy link
Owner

@jacksjm jacksjm commented Oct 3, 2020

Solutions for Chapter 4

cc @vrom911 @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.

Very well done! Perfect solution πŸ† πŸ₯‡

Congratulations with finishing the last chapter! 🏁

(<*>) :: Secret e (a -> b) -> Secret e a -> Secret e b
(<*>) = error "(<*>) Secret: Not implemented!"
Trap e <*> _ = Trap e
Reward f <*> x = fmap f x
Copy link

Choose a reason for hiding this comment

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

Nice work on reusing the Functor instance for Secret in here! πŸ…

@jacksjm jacksjm added the hacktoberfest-accepted Accepted for hacktoberfest, will merge later label Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Accepted for hacktoberfest, will merge later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants