Monoid(undefined)
should be handled according to the rules on the Monoid
#371
Labels
Monoid(undefined)
should be handled according to the rules on the Monoid
#371
Is your feature request related to a problem? Please describe.
A question was raise #301 by @bennypowers. Floating the idea of
m(nil)
returning anempty
for the monoid.Describe the solution you'd like
We will need to consider the behaviour of each
monoid
but ifundefined
hits themonoid
and it is not expected we should handle it accordingly. In the case ofAny
andAll
which utilize coercion, should coerce into afalse
. All otherMonoid
should throw if their carrier type cannot deal with the unit.Describe alternatives for how you do this now
@bennypowers can you add here if you have any
Code
Additional context
The text was updated successfully, but these errors were encountered: