Prepare for 2.0 release by garyb · Pull Request #22 · purescript/purescript-maybe · GitHub
Skip to content

Prepare for 2.0 release#22

Merged
garyb merged 2 commits into
masterfrom
bump
Oct 2, 2016
Merged

Prepare for 2.0 release#22
garyb merged 2 commits into
masterfrom
bump

Conversation

@garyb

@garyb garyb commented Oct 2, 2016

Copy link
Copy Markdown
Member

No description provided.

@garyb

garyb commented Oct 2, 2016

Copy link
Copy Markdown
Member Author

Comment thread src/Data/Maybe/First.purs Outdated

instance bindFirst :: Bind First where
bind (First x) f = First (bind x (runFirst <<< f))
bind (First x) f = First (x >>= \y -> case f y of First ma -> ma)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be derivable.

Comment thread src/Data/Maybe/Last.purs Outdated

instance bindLast :: Bind Last where
bind (Last x) f = Last (bind x (runLast <<< f))
bind (Last x) f = Last (x >>= \y -> case f y of Last ma -> ma)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same

@paf31

paf31 commented Oct 2, 2016

Copy link
Copy Markdown
Contributor

Sorry didn't see this one. Nothing blocking, just noticed a couple of possibly-derivable instances. Thanks!

@paf31 paf31 closed this Oct 2, 2016
@paf31 paf31 reopened this Oct 2, 2016
@garyb

garyb commented Oct 2, 2016

Copy link
Copy Markdown
Member Author

Nice, thanks for the reminder - they're almost entirely derivable 😄

@garyb garyb merged commit bd1e507 into master Oct 2, 2016
@garyb garyb deleted the bump branch October 2, 2016 23:05
@paf31

paf31 commented Oct 2, 2016

Copy link
Copy Markdown
Contributor

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