Conversation
60a5c91 to
df16f8f
Compare
|
Great work, likely mergeable soon; since this should resolve #88, could you add similar instances for Backwards and Lift? |
df16f8f to
ffdeb17
Compare
|
I also added |
ffdeb17 to
fcfddd8
Compare
L0neGamer
left a comment
There was a problem hiding this comment.
Ah, I see that the mappend implementations are neccessary pre base 4.11, good catch!
I'll approve and merge this today, assuming I get time to manually test it a bit.
|
Just passing by, note that these instances have been discussed previously and were not added at the time. |
|
GitHub issue #10 for reference |
|
From the original issue:
The second one is an an implementation of The only difference between 1 and 3 would be if the monoid is not implemented as For them even with 1 one can get the right semantics if the |
|
Regarding strictness, 1 (which is this PR) will cause problems if |
|
2 is 3 is interesting. It says, wherever there appears a |
|
@sjshuck and I had a chat and we think that the behaviour suggested in this PR can be suitably regained by using As a result (apologies for being long winded, and for asking for so many adjustments), we don't think we will merge this change. I'll close #88 soon as well with a similar message. Thank you for your contributions all. |
If
ais aMonoidandma monad thenm ais aMonoidin a natural way.baseprovidesMonoid a => Monoid (IO a)instance.This instance is handy when one needs to do a
foldMapover some monadiccomputation.