This is exactly why I prefer Monoid over Semigroup. Having a law-abiding identity eliminates all sorts of corner caseshttps://twitter.com/carnivorous8008/status/871924374567231488 …
-
-
This is analogous to arguing "Why can't I use goto?" Sometimes forbidding functionality improves the code
-
I'm not using that argument. There is no code that improves by the non-existence of Semigroup (or Monoid or any other appropriate thing).
- Show replies
New conversation -
-
-
hmm, it would be neat to statically verify that you actually *use* a constraint, but `runWriter (pure ())` seems to forbid a `NonEmpty`
-
Recent GHC versions warn of unnecessary constraints.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.