Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extension of IFn #106

Merged
merged 1 commit into from
Oct 11, 2015
Merged

Extension of IFn #106

merged 1 commit into from
Oct 11, 2015

Conversation

tcsavage
Copy link
Contributor

Implements semigroup, monoid, functor, applicative and monad for IFn.

I asked in #52 which semigroup. monoid implementation would be preferred but after attempting to implement Haskell's default, I'm not sure it's possible with the context system (certainly not in a nice way). So I implemented mappend as comp and mempty as identity instead which has the added advantage be being much simpler.

@niwinz
Copy link
Member

niwinz commented Oct 11, 2015

Hi @tcsavage

Thanks for you work.

Independently of the circumstances, I prefer the implemented approach to the haskell one.

niwinz added a commit that referenced this pull request Oct 11, 2015
@niwinz niwinz merged commit 64a22e3 into funcool:master Oct 11, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants