Skip to content

Alternative & MonadPlus #8

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

Merged
merged 6 commits into from
Aug 11, 2014
Merged

Alternative & MonadPlus #8

merged 6 commits into from
Aug 11, 2014

Conversation

garyb
Copy link
Member

@garyb garyb commented Aug 7, 2014

Potentially resolves #6.

How does this look?


class (Monad m, Alternative m) <= MonadPlus m

guard :: forall m. (MonadPlus m) => Boolean -> m Unit
Copy link
Contributor

Choose a reason for hiding this comment

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

Finally! Now I can add this to the book under array comprehensions :)

@garyb
Copy link
Member Author

garyb commented Aug 7, 2014

Updated w/Lazy1

@paf31
Copy link
Contributor

paf31 commented Aug 7, 2014

Looks good to me :shipit:

@joneshf Any comments?

@paf31
Copy link
Contributor

paf31 commented Aug 11, 2014

All looks good to me :)

garyb added a commit that referenced this pull request Aug 11, 2014
@garyb garyb merged commit 3100ed7 into master Aug 11, 2014
@garyb garyb deleted the alternative branch August 11, 2014 20:34
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.

Alternative reform
2 participants